Add lttng-error.h containing every API err. code
[lttng-tools.git] / src / bin / lttng / commands / enable_events.c
index a2c8a68b233e0ed7beeef1b893c7f453b874e08d..5a22c951355703d418c47fb108ad13e33895587e 100644 (file)
@@ -369,7 +369,7 @@ static int enable_events(char *session_name)
                ret = lttng_enable_event(handle, &ev, channel_name);
                if (ret < 0) {
                        switch (-ret) {
-                       case LTTCOMM_KERN_EVENT_EXIST:
+                       case LTTNG_ERR_KERN_EVENT_EXIST:
                                WARN("Kernel events already enabled (channel %s, session %s)",
                                                channel_name, session_name);
                                break;
@@ -536,7 +536,7 @@ static int enable_events(char *session_name)
                if (ret < 0) {
                        /* Turn ret to positive value to handle the positive error code */
                        switch (-ret) {
-                       case LTTCOMM_KERN_EVENT_EXIST:
+                       case LTTNG_ERR_KERN_EVENT_EXIST:
                                WARN("Kernel event %s already enabled (channel %s, session %s)",
                                                event_name, channel_name, session_name);
                                break;
This page took 0.030401 seconds and 4 git commands to generate.