Fix: common: handle missing status in bt_common_func_status_string
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 11 Mar 2022 01:16:47 +0000 (20:16 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 15 Jun 2022 18:29:50 +0000 (14:29 -0400)
commita6804e9483d50ec9a6e25d933b98cd3438077e0c
tree720972317f4f640b7589fdcd58e6e5fb315dc4f5
parentffecc00e2725dea0af6a7e0cfb10a95b8f56ee68
Fix: common: handle missing status in bt_common_func_status_string

bt_common_func_status_string does not handle __BT_FUNC_STATUS_NO_MATCH,
trying to use it leads to an abort.

Add it, and reorder the cases to be in the same order as the statuses
are listed in include/babeltrace2/func-status.h, to make it easier to
see that none is missing.

Change-Id: I1c1da11b0e9a0694c96b67a4d1e6efb8e4da55d7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7564
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/common/common.h
This page took 0.024329 seconds and 4 git commands to generate.