Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
perfmon: null-terminate string
[vpp.git]
/
src
/
plugins
/
perfmon
/
intel
/
uncore.c
diff --git
a/src/plugins/perfmon/intel/uncore.c
b/src/plugins/perfmon/intel/uncore.c
index
8246bb1
..
4ed001d
100644
(file)
--- a/
src/plugins/perfmon/intel/uncore.c
+++ b/
src/plugins/perfmon/intel/uncore.c
@@
-78,7
+78,7
@@
format_instance_name (intel_uncore_unit_type_t u, char *unit_fmt, u8 socket_id,
{
u8 *fmt = 0;
- fmt = format (0, "%s (%s)
", unit_fmt, (n->unit_names[ubox])
);
+ fmt = format (0, "%s (%s)
%c", unit_fmt, (n->unit_names[ubox]), 0
);
s = format (0, (char *) fmt, socket_id, ubox);
vec_free (fmt);