diff options
author | Ingo Molnar <mingo@elte.hu> | 2012-03-14 18:49:05 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2012-03-14 18:49:05 +0100 |
commit | 89c5bd08df5841326abbf167d136bcf14cf759ed (patch) | |
tree | 064edb874800f4f233713c33bc555d58240bd963 /tools/perf/arch/powerpc | |
parent | 762ad8a5330325b789cfb6dc896f81cf273ff4e9 (diff) | |
parent | eae7a755ee81129370c8f555b0d5672e6673735d (diff) | |
download | op-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.c | 2 |
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, '$')) { |