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.7.3~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6d761d7fbd5d8001868db69b37ab3a123c268ccb;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 40aec9d07..bf4a149c8 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -283,10 +283,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