From: Korynkevych, RomanX Date: Thu, 20 Jul 2017 13:09:36 +0000 (+0100) Subject: intel_pmu: fix compilation error caused by migration to snprintf(). X-Git-Tag: collectd-5.8.0~111^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=edb91e1a233489cd7a3cf615e7b5070d03f50408;p=collectd.git intel_pmu: fix compilation error caused by migration to snprintf(). Change-Id: I4e461cd11aa03ca588649ca86892c23c9f38fc54 Signed-off-by: Korynkevych, RomanX --- 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));