X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Flist.c;h=4a94690b038b4ca20fe9839a01c51637bc457ceb;hp=a4ee96e9e0f2b1843a9696f28e8f822cb84c0b51;hb=410b78a0be5045a1e0d85bdf3b3e0f2288825f0d;hpb=66ea93b10c703e1b3dda1e17109eed9138e4ece2 diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index a4ee96e9e..4a94690b0 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -343,6 +343,8 @@ static void print_events(struct lttng_event *event) safe_string(filter_msg)); break; case LTTNG_EVENT_ALL: + /* Fall-through. */ + default: /* We should never have "all" events in list. */ assert(0); break; @@ -1536,16 +1538,6 @@ static enum cmd_error_code print_periodic_rotation_schedule( } MSG(" timer period: %" PRIu64" µs", value); - if (lttng_opt_mi) { - int mi_ret = mi_lttng_writer_write_element_unsigned_int(writer, - config_element_rotation_timer_interval, value); - - if (mi_ret) { - ret = CMD_ERROR; - goto end; - } - } - ret = CMD_SUCCESS; end: return ret; @@ -1567,16 +1559,6 @@ static enum cmd_error_code print_size_threshold_rotation_schedule( } MSG(" size threshold: %" PRIu64" bytes", value); - if (lttng_opt_mi) { - int mi_ret = mi_lttng_writer_write_element_unsigned_int(writer, - config_element_rotation_size, value); - - if (mi_ret) { - ret = CMD_ERROR; - goto end; - } - } - ret = CMD_SUCCESS; end: return ret;