Add lttng-error.h containing every API err. code
[lttng-tools.git] / src / bin / lttng / commands / enable_channels.c
index 57c8a1eb8eb54e747b1a76757a850ab65186c7ab..a5b15fae7f46e7b93856aa46545c73b872124244 100644 (file)
@@ -186,8 +186,8 @@ static int enable_channel(char *session_name)
                ret = lttng_enable_channel(handle, &chan);
                if (ret < 0) {
                        switch (-ret) {
-                       case LTTCOMM_KERN_CHAN_EXIST:
-                       case LTTCOMM_UST_CHAN_EXIST:
+                       case LTTNG_ERR_KERN_CHAN_EXIST:
+                       case LTTNG_ERR_UST_CHAN_EXIST:
                                WARN("Channel %s: %s (session %s", channel_name,
                                                lttng_strerror(ret), session_name);
                                goto error;
This page took 0.023117 seconds and 4 git commands to generate.