X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcommands%2Flist.c;h=50dad9a2b4efc3aa57cb747c72820cea36773add;hp=c73ea74dc457f504775abede040a1a3cceb7aec4;hb=874d3f847b8053e38a50321b17abce4248ce6e53;hpb=a54bd42d73836eb9033a31c3f68be5b7e8612dce diff --git a/lttng/commands/list.c b/lttng/commands/list.c index c73ea74dc..50dad9a2b 100644 --- a/lttng/commands/list.c +++ b/lttng/commands/list.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "../cmd.h" @@ -185,6 +186,10 @@ static int list_events(const char *channel_name) MSG("%s (type: noop) [enabled: %d]", indent6, events[i].enabled); break; + case LTTNG_EVENT_ALL: + /* We should never have "all" events in list. */ + assert(0); + break; } } @@ -262,7 +267,7 @@ static int list_channels(const char *channel_name) /* Listing events per channel */ ret = list_events(channels[i].name); if (ret < 0) { - MSG("%s", lttng_get_readable_code(ret)); + MSG("%s", lttng_strerror(ret)); } if (chan_found) {