summaryrefslogtreecommitdiff
path: root/tools/perf/arch/powerpc/util/header.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-03-22 22:09:08 +0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-03-22 22:09:08 +0400
commit0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a (patch)
tree177871323b183610017c65c68f0bde9af2f37f47 /tools/perf/arch/powerpc/util/header.c
parent9521d830b6341d1887dcfc2aebde23fbfa5f1473 (diff)
parent89c5bd08df5841326abbf167d136bcf14cf759ed (diff)
downloadlinux-0d09eb7a9a2ca4d7ed32f7b440bea78c0622814a.tar.xz
Merge branch 'perf/urgent' into perf/core
Merge Reason: to pick the fix: commit e7f01d1 perf tools: Use scnprintf where applicable Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/powerpc/util/header.c')
-rw-r--r--tools/perf/arch/powerpc/util/header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/powerpc/util/header.c b/tools/perf/arch/powerpc/util/header.c
index eba80c292945..2f7073d107fd 100644
--- a/tools/perf/arch/powerpc/util/header.c
+++ b/tools/perf/arch/powerpc/util/header.c
@@ -25,7 +25,7 @@ get_cpuid(char *buffer, size_t sz)
pvr = mfspr(SPRN_PVR);
- nb = snprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr));
+ nb = scnprintf(buffer, sz, "%lu,%lu$", PVR_VER(pvr), PVR_REV(pvr));
/* look for end marker to ensure the entire data fit */
if (strchr(buffer, '$')) {