X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=12499ee408f1e545b3afbe727f2b0c3659a23082;hp=7c3211a5927ffc2c34a0f3f5e72528be8c8c4575;hb=ade7ce5245446944d27824943142773f7e4d0674;hpb=fa64dfb477cac50bb0b8a02fcf6b5a16a426d43b diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 7c3211a59..12499ee40 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -1207,7 +1207,7 @@ static int list_channels(const char *channel_name) } } else { /* Pretty print */ - if (channel_name == NULL) { + if (count) { MSG("Channels:\n-------------"); }