Handle unknown domain in MI
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 15 May 2016 21:38:55 +0000 (17:38 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 20:21:38 +0000 (16:21 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/mi-lttng.c

index 40aec9d0714ab22fe96204ca3320b4818070546a..bf4a149c8148047fe41b886303a3f3a93cc6cb07 100644 (file)
@@ -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
This page took 0.025728 seconds and 4 git commands to generate.