Fix verbose and debug mode options
[babeltrace.git] / converter / babeltrace.c
index fed201e7d5fbe4cd228a598f8cc39f541d141320..1c696545e92c35f176d5251e89797643b2a6692a 100644 (file)
@@ -61,8 +61,6 @@ void print_component_classes_found(struct bt_component_factory *factory)
 {
        int count, i;
 
-       babeltrace_verbose = 1;
-
        if (!babeltrace_verbose) {
                return;
        }
@@ -263,6 +261,9 @@ int main(int argc, char **argv)
                goto end;
        }
 
+       babeltrace_verbose = cfg->verbose;
+       babeltrace_debug = cfg->debug;
+
        /* TODO handle more than 1 source and 1 sink. */
        if (cfg->sources->len != 1 || cfg->sinks->len != 1) {
                fprintf(stderr, "Unexpected configuration, aborting.../n");
This page took 0.022925 seconds and 4 git commands to generate.