Fix: bt_config_convert_from_args(): set default log level at the end too
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 20 Jun 2019 19:50:20 +0000 (15:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:32 +0000 (11:53 -0400)
commitcff899542956ec9207d44e6ce61264d74af0d2fc
treed109f975e640638d9ca10a15d0cbd7eb1600d2ba
parentc9ecaa780cbfa7020b33fecb6910b5825b46af2c
Fix: bt_config_convert_from_args(): set default log level at the end too

Issue
=====
There are code paths which make bt_config_convert_from_args() return a
configuration while not having set the default log level.

For example, with `-o ctf-metadata`, the function calls
bt_config_print_ctf_metadata_create() to create such a configuration,
and then goes to the `end` label).

Solution
========
Make sure it is set to the CLI's default log level value when reaching
the end of the function.

Known drawbacks
===============
None.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I2ee21a754aeaea65fd6d4fbfcae5bd2f07fcba7c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1525
Tested-by: jenkins <jenkins@lttng.org>
src/cli/babeltrace2-cfg-cli-args.c
This page took 0.025356 seconds and 4 git commands to generate.