babeltrace-cfg.c: do not infer text.text sink with -v
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 22 Feb 2017 15:26:00 +0000 (10:26 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
Having the -v option passed to the `convert` command is not a
sufficient criterion to infer a text.text sink component, because -v
is also a general option which applies to the whole command. Without
this patch, you can't run this:

    babeltrace -v /path/to/trace -o my.sink

because the configurator sees both an implicit text.text sink (caused by
-v) and an explicit my.sink sink.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace-cfg.c

index f281ee50f7f5ac3082a21143d714dc40236039df..706fbfd803402699b7bcf873f0059568821ad204 100644 (file)
@@ -187,7 +187,7 @@ bool text_legacy_opts_is_any_set(struct text_legacy_opts *opts)
                bt_value_array_size(opts->names) > 0 ||
                bt_value_array_size(opts->fields) > 0 ||
                opts->no_delta || opts->clock_cycles || opts->clock_seconds ||
-               opts->clock_date || opts->clock_gmt || opts->verbose ||
+               opts->clock_date || opts->clock_gmt ||
                opts->dbg_info_full_path;
 }
 
This page took 0.024864 seconds and 4 git commands to generate.