Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 7c3211a5927ffc2c34a0f3f5e72528be8c8c4575..f69d34db99aab59b115cf3c6cdf9b77f2a3a9252 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <inttypes.h>
 #include <popt.h>
 #include <stdio.h>
@@ -1207,7 +1208,7 @@ static int list_channels(const char *channel_name)
                }
        } else {
                /* Pretty print */
-               if (channel_name == NULL) {
+               if (count) {
                        MSG("Channels:\n-------------");
                }
 
This page took 0.028257 seconds and 5 git commands to generate.