intel_pmu: fix compilation error caused by migration to snprintf().
authorKorynkevych, RomanX <romanx.korynkevych@intel.com>
Thu, 20 Jul 2017 13:09:36 +0000 (14:09 +0100)
committerKorynkevych, RomanX <romanx.korynkevych@intel.com>
Thu, 20 Jul 2017 13:09:36 +0000 (14:09 +0100)
Change-Id: I4e461cd11aa03ca588649ca86892c23c9f38fc54
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/intel_pmu.c

index ea7c83f..e5f19ce 100644 (file)
@@ -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));