summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/powerpc
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2012-03-14 18:49:05 +0100
committerIngo Molnar <mingo@elte.hu>2012-03-14 18:49:05 +0100
commit89c5bd08df5841326abbf167d136bcf14cf759ed (patch)
tree064edb874800f4f233713c33bc555d58240bd963 /tools/perf/arch/powerpc
parent762ad8a5330325b789cfb6dc896f81cf273ff4e9 (diff)
parenteae7a755ee81129370c8f555b0d5672e6673735d (diff)
downloadop-kernel-dev-89c5bd08df5841326abbf167d136bcf14cf759ed.zip
op-kernel-dev-89c5bd08df5841326abbf167d136bcf14cf759ed.tar.gz
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Some corner case fixes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/arch/powerpc')
-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 eba80c2..2f7073d 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, '$')) {
OpenPOWER on IntegriCloud