Commit 1896ae13 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Oprofilefs cant handle > 99 cpus

From: Anton Blanchard <anton@samba.org>

Oprofilefs cant handle > 99 cpus. This should fix it.
parent 17ee20ae
......@@ -55,7 +55,7 @@ void oprofile_create_stats_files(struct super_block * sb, struct dentry * root)
continue;
cpu_buf = &cpu_buffer[i];
snprintf(buf, 6, "cpu%d", i);
snprintf(buf, 10, "cpu%d", i);
cpudir = oprofilefs_mkdir(sb, dir, buf);
/* Strictly speaking access to these ulongs is racy,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment