X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=dd39c4fc595cbc14ddfdab3eb450e338e10c7605;hb=22aca9f6954179e10aeed2e1a5719a2f13600eae;hp=0b1eff265b4635f4d1ffb0a568e5314d856256f8;hpb=967375aadf345ac9c655f2558638713178ed1a3c;p=lttng-tools.git diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 0b1eff265..dd39c4fc5 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -688,7 +688,7 @@ static int list_channels(const char *channel_name) goto error_channels; } - if (channel_name == NULL) { + if (count) { MSG("Channels:\n-------------"); }