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