X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;h=035269a5860ac8c43364ae2044f9f48be389c3fa;hp=a3d8868b52c6539117c7b5f8f8b07173d5cc18d0;hb=3e25cb206e0a0e8ae04f7eb1e310970baf01a323;hpb=464dd62d5617322366e321877b440951e00a0152 diff --git a/lttng/commands/list.c b/lttng/commands/list.c index a3d8868b5..035269a58 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -113,8 +113,8 @@ static const char *active_string(int value) { switch (value) { - case 0: return " [active]"; - case 1: return " [inactive]"; + case 0: return " [inactive]"; + case 1: return " [active]"; case -1: return ""; default: return NULL; } @@ -124,8 +124,8 @@ static const char *enabled_string(int value) { switch (value) { - case 0: return " [enabled]"; - case 1: return " [disabled]"; + case 0: return " [disabled]"; + case 1: return " [enabled]"; case -1: return ""; default: return NULL; } @@ -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) {