From edb91e1a233489cd7a3cf615e7b5070d03f50408 Mon Sep 17 00:00:00 2001 From: "Korynkevych, RomanX" Date: Thu, 20 Jul 2017 14:09:36 +0100 Subject: [PATCH] intel_pmu: fix compilation error caused by migration to snprintf(). Change-Id: I4e461cd11aa03ca588649ca86892c23c9f38fc54 Signed-off-by: Korynkevych, RomanX --- src/intel_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel_pmu.c b/src/intel_pmu.c index ea7c83f1..e5f19cee 100644 --- a/src/intel_pmu.c +++ b/src/intel_pmu.c @@ -273,9 +273,9 @@ static void pmu_submit_counter(int cpu, char *event, counter_t value) { sstrncpy(vl.plugin, PMU_PLUGIN, sizeof(vl.plugin)); if (cpu == -1) { - ssnprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "all"); + snprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "all"); } else { - ssnprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%d", cpu); + snprintf(vl.plugin_instance, sizeof(vl.plugin_instance), "%d", cpu); } sstrncpy(vl.type, "counter", sizeof(vl.type)); sstrncpy(vl.type_instance, event, sizeof(vl.type_instance)); -- 2.11.0