aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2021-11-17 17:55:50 +0100
committerDamjan Marion <dmarion@me.com>2022-03-29 10:10:24 +0000
commit81878a9e3cc2c2524c7165edacc1d72d559a1f05 (patch)
treeb68f560cfd9b50e363ca01348ab76109ce309da2 /src
parente74c04fc9fb2600470fe79a69d3ec6b0db95faec (diff)
perfmon: fix non-NULL terminated C-string
format() expects a NULL-terminated C-string as format string. Type: fix Change-Id: Ib428cf2debbf98850eed512907175f8ae8ba3c04 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/perfmon/intel/uncore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perfmon/intel/uncore.c b/src/plugins/perfmon/intel/uncore.c
index 4ed001d4deb..01579964bea 100644
--- a/src/plugins/perfmon/intel/uncore.c
+++ b/src/plugins/perfmon/intel/uncore.c
@@ -63,7 +63,7 @@ intel_uncore_instance_name_cmp (void *v1, void *v2)
return strcmp (i1->name, i2->name);
}
-static_always_inline u8 *
+static u8 *
format_instance_name (intel_uncore_unit_type_t u, char *unit_fmt, u8 socket_id,
u8 ubox)
{