diff options
Diffstat (limited to 'src/vlib')
-rw-r--r-- | src/vlib/log.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c index d084511a647..f176062fd0c 100644 --- a/src/vlib/log.c +++ b/src/vlib/log.c @@ -226,13 +226,13 @@ vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...) if (lm->add_to_elog) { - /* *INDENT-OFF* */ - ELOG_TYPE_DECLARE(ee) = + ELOG_TYPE_DECLARE(ee) = { .format = "log-%s: %s", .format_args = "t4T4", - .n_enum_strings = 9, + .n_enum_strings = VLIB_LOG_N_LEVELS, .enum_strings = { + "unknown", "emerg", "alert", "crit", @@ -244,11 +244,11 @@ vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...) "disabled", }, }; - struct { - u32 log_level; - u32 string_index; - } *ed; - /* *INDENT-ON* */ + struct + { + u32 log_level; + u32 string_index; + } * ed; ed = ELOG_DATA (&vlib_global_main.elog_main, ee); ed->log_level = level; ed->string_index = |