summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c99e3a4)
raw | patch | inline | side by side (parent: c99e3a4)
author | Korynkevych, RomanX <romanx.korynkevych@intel.com> | |
Thu, 20 Jul 2017 13:09:36 +0000 (14:09 +0100) | ||
committer | Korynkevych, 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>
Signed-off-by: Korynkevych, RomanX <romanx.korynkevych@intel.com>
src/intel_pmu.c | patch | blob | history |
diff --git a/src/intel_pmu.c b/src/intel_pmu.c
index ea7c83f1983d6fa0906ec825b96fc65fd90adb90..e5f19ceef16ad72872f7b15ba76c4e1a47de023e 100644 (file)
--- a/src/intel_pmu.c
+++ b/src/intel_pmu.c
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));