Re: [patch] export percpu cpuacct cgroup stats

From: Li Zefan
Date: Sun Dec 07 2008 - 20:26:48 EST

Ken Chen wrote:
> On Thu, Dec 4, 2008 at 11:54 PM, Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:
>>> + seq_printf(m, "%llu ", percpu);
>> Should be:
>> + seq_printf(m, "%llu ", (unsigned long long)percpu);
>> Otherwsise:
>> kernel/sched.c: In function 'cpuacct_percpu_seq_read':
>> kernel/sched.c:9359: warning: format '%llu' expects type 'long long unsigned int',
>> but argument 3 has type 'u64'
> I'm curious what compiler and CPU arch target are you using that cause
> compiler to spit out this warning message? On x86_64 u64 is unsigned
> long long and gcc v4.2.4 doesn't give such warning.

I tried it on IA64, and gcc version is 4.1.2.

On IA64, u64 is unsigned long.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at