lkml.org 
[lkml]   [2008]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [patch] export percpu cpuacct cgroup stats
From
On Thu, Dec 4, 2008 at 11:54 PM, Li Zefan <lizf@cn.fujitsu.com> 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.

- Ken


\
 
 \ /
  Last update: 2008-12-05 19:13    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site