From: David Goulet Date: Thu, 11 Apr 2013 18:30:46 +0000 (-0400) Subject: Improve channel listing output format X-Git-Tag: v2.2.0-rc2~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e78de861055e6288d11348866681d1373ed81aec;p=lttng-tools.git Improve channel listing output format Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index db993df75..280f9ddf7 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -507,11 +507,15 @@ static void print_channel(struct lttng_channel *channel) MSG("- %s:%s\n", channel->name, enabled_string(channel->enabled)); MSG("%sAttributes:", indent4); - MSG("%soverwrite mode: %d", indent6, channel->attr.overwrite); - MSG("%ssubbufers size: %" PRIu64, indent6, channel->attr.subbuf_size); + MSG("%swrite mode: %s", indent6, + channel->attr.overwrite == 0 ? "discard" : "overwrite"); + MSG("%ssubbufers size: %" PRIu64 " bytes", indent6, + channel->attr.subbuf_size); MSG("%snumber of subbufers: %" PRIu64, indent6, channel->attr.num_subbuf); - MSG("%sswitch timer interval: %u", indent6, channel->attr.switch_timer_interval); - MSG("%sread timer interval: %u", indent6, channel->attr.read_timer_interval); + MSG("%sswitch timer interval: %u usec", indent6, + channel->attr.switch_timer_interval); + MSG("%sread timer interval: %u usec", indent6, + channel->attr.read_timer_interval); switch (channel->attr.output) { case LTTNG_EVENT_SPLICE: MSG("%soutput: splice()", indent6);