From: Jérémie Galarneau Date: Thu, 27 Aug 2020 19:16:29 +0000 (-0400) Subject: lttng: move log level name to numerical value conversions to a common util X-Git-Tag: v2.13.0-rc1~329 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;ds=sidebyside;h=7e8f2e9cce651c81094a864bbffefcaa4bcc7a51;hp=7e8f2e9cce651c81094a864bbffefcaa4bcc7a51;p=lttng-tools.git lttng: move log level name to numerical value conversions to a common util Move the utils used by the `enable-event` command to convert log level names (textual) to their values (entries in their respective enums). Since these utils will be used by other commands in the future, the code is cleaned-up, notably to maintain type-safety by returning specific enums rather than casting to `int`. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I3f655bed6cd5b12cae1e93421f9d1c41ab1b6247 ---