summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vlib/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c
index bd456aeafe9..ed14d9ecdc6 100644
--- a/src/vlib/log.c
+++ b/src/vlib/log.c
@@ -251,7 +251,7 @@ vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...)
/* *INDENT-ON* */
ed = ELOG_DATA (&vm->elog_main, ee);
ed->log_level = level;
- ed->string_index = elog_string (&vm->elog_main, (char *) e->string);
+ ed->string_index = elog_string (&vm->elog_main, "%v", e->string);
}
lm->next = (lm->next + 1) % lm->size;