summaryrefslogtreecommitdiffstats
path: root/modules/md/md_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/md/md_log.c')
-rw-r--r--modules/md/md_log.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/md/md_log.c b/modules/md/md_log.c
index de2bcbdca5..c62b69d191 100644
--- a/modules/md/md_log.c
+++ b/modules/md/md_log.c
@@ -42,10 +42,7 @@ static const char *level_names[] = {
const char *md_log_level_name(md_log_level_t level)
{
- if ((int)level < (sizeof(level_names)/sizeof(level_names[0]))) {
- return level_names[level];
- }
- return "???";
+ return level_names[level];
}
static md_log_print_cb *log_printv;