From: Jérémie Galarneau Date: Sun, 15 May 2016 21:38:55 +0000 (-0400) Subject: Handle unknown domain in MI X-Git-Tag: v2.9.0-rc1~242 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bc2718d16cc9ad2b3f752968d9478e36ed107329;p=lttng-tools.git Handle unknown domain in MI Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index 546181822..109fb418a 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -302,10 +302,9 @@ const char *mi_lttng_loglevel_string(int value, enum lttng_domain_type domain) return mi_lttng_loglevel_str_unknown; } break; + default: + return mi_lttng_loglevel_str_unknown; } - - /* Reaching this means the domain is unknown. */ - return mi_lttng_loglevel_str_unknown; } LTTNG_HIDDEN