edit printout in lttng list "all" channels
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 22 Nov 2011 08:51:23 +0000 (09:51 +0100)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 22 Nov 2011 08:51:23 +0000 (09:51 +0100)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng/commands/list.c

index bac17b8970b9c88379f47b81fc977ed1ec461602..035269a5860ac8c43364ae2044f9f48be389c3fa 100644 (file)
@@ -333,7 +333,7 @@ static int list_channels(const char *channel_name)
        unsigned int chan_found = 0;
        struct lttng_channel *channels = NULL;
 
        unsigned int chan_found = 0;
        struct lttng_channel *channels = NULL;
 
-       DBG("Listing channel(s) (%s)", channel_name);
+       DBG("Listing channel(s) (%s)", channel_name ? : "<all>");
 
        count = lttng_list_channels(handle, &channels);
        if (count < 0) {
 
        count = lttng_list_channels(handle, &channels);
        if (count < 0) {
This page took 0.025589 seconds and 4 git commands to generate.