From: Mathieu Desnoyers Date: Tue, 22 Nov 2011 08:51:23 +0000 (+0100) Subject: edit printout in lttng list "all" channels X-Git-Tag: v2.0-pre15~89 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3e25cb206e0a0e8ae04f7eb1e310970baf01a323;p=lttng-tools.git edit printout in lttng list "all" channels Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng/commands/list.c b/lttng/commands/list.c index bac17b897..035269a58 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -333,7 +333,7 @@ static int list_channels(const char *channel_name) unsigned int chan_found = 0; struct lttng_channel *channels = NULL; - DBG("Listing channel(s) (%s)", channel_name); + DBG("Listing channel(s) (%s)", channel_name ? : ""); count = lttng_list_channels(handle, &channels); if (count < 0) {