X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=f69d34db99aab59b115cf3c6cdf9b77f2a3a9252;hp=7c3211a5927ffc2c34a0f3f5e72528be8c8c4575;hb=6c1c0768320135c6936c371b09731851b508c023;hpb=0e1155633b00241b8b1e5a9bb683cf91b28f5eeb diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 7c3211a59..f69d34db9 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -16,6 +16,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -1207,7 +1208,7 @@ static int list_channels(const char *channel_name) } } else { /* Pretty print */ - if (channel_name == NULL) { + if (count) { MSG("Channels:\n-------------"); }