Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
68501d3
)
vlib: null terminate elog string
86/34786/1
author
Damjan Marion
<damarion@cisco.com>
Wed, 22 Dec 2021 11:25:49 +0000
(12:25 +0100)
committer
Damjan Marion
<damarion@cisco.com>
Wed, 22 Dec 2021 11:26:57 +0000
(12:26 +0100)
Type: fix
Fixes:
bc867c3
Change-Id: Ibcdb46d3b322195f5573e5ec93b31e177acaca49
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/log.c
patch
|
blob
|
history
diff --git
a/src/vlib/log.c
b/src/vlib/log.c
index
fc67a1f
..
07561d9
100644
(file)
--- a/
src/vlib/log.c
+++ b/
src/vlib/log.c
@@
-252,7
+252,7
@@
vlib_log (vlib_log_level_t level, vlib_log_class_t class, char *fmt, ...)
ed = ELOG_DATA (&vlib_global_main.elog_main, ee);
ed->log_level = level;
ed->string_index =
- elog_string (&vlib_global_main.elog_main, "%v
", e->string
);
+ elog_string (&vlib_global_main.elog_main, "%v
%c", e->string, 0
);
}
lm->next = (lm->next + 1) % lm->size;