Improve channel listing output format
authorDavid Goulet <dgoulet@efficios.com>
Thu, 11 Apr 2013 18:30:46 +0000 (14:30 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 11 Apr 2013 20:19:11 +0000 (16:19 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/list.c

index db993df75d8d15b111fb0f4a6c93a74bd8073c0c..280f9ddf7368141b6fd3da8e735c082f9e4bf613 100644 (file)
@@ -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);
This page took 0.026019 seconds and 4 git commands to generate.