]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/arch/powerpc/util/header.c
perf tools: Use scnprintf where applicable
[karo-tx-linux.git] / tools / perf / arch / powerpc / util / header.c
index eba80c292945be554ccf681ee63e9bcbd8287d66..2f7073d107fd115fa75c15e2c9734b2fd501fef6 100644 (file)
@@ -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, '$')) {