Fix: Don't report an error when listing a session with no channels
[lttng-tools.git] / src / bin / lttng / commands / list.c
index 7c3211a5927ffc2c34a0f3f5e72528be8c8c4575..12499ee408f1e545b3afbe727f2b0c3659a23082 100644 (file)
@@ -1207,7 +1207,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.024531 seconds and 5 git commands to generate.