* [PATCH] proc: fix warnings
@ 2008-08-02 8:24 Alexander Beregalov
2008-08-02 8:50 ` Andrea Righi
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Beregalov @ 2008-08-02 8:24 UTC (permalink / raw)
To: righi.andrea, oleg, linux-kernel
From: Alexander Beregalov <a.beregalov@gmail.com>
proc: fix warnings
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 3 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 4 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 5 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 6 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 7 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 8 has type 'u64'
fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
unsigned int', but argument 9 has type 'u64'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Andrea Righi <righi.andrea@gmail.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
---
fs/proc/base.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 01ed610..a28840b 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2423,10 +2423,13 @@ static int do_io_accounting(struct task_struct *task, char *buffer, int whole)
"read_bytes: %llu\n"
"write_bytes: %llu\n"
"cancelled_write_bytes: %llu\n",
- acct.rchar, acct.wchar,
- acct.syscr, acct.syscw,
- acct.read_bytes, acct.write_bytes,
- acct.cancelled_write_bytes);
+ (unsigned long long)acct.rchar,
+ (unsigned long long)acct.wchar,
+ (unsigned long long)acct.syscr,
+ (unsigned long long)acct.syscw,
+ (unsigned long long)acct.read_bytes,
+ (unsigned long long)acct.write_bytes,
+ (unsigned long long)acct.cancelled_write_bytes);
}
static int proc_tid_io_accounting(struct task_struct *task, char *buffer)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] proc: fix warnings
2008-08-02 8:24 [PATCH] proc: fix warnings Alexander Beregalov
@ 2008-08-02 8:50 ` Andrea Righi
0 siblings, 0 replies; 2+ messages in thread
From: Andrea Righi @ 2008-08-02 8:50 UTC (permalink / raw)
To: Alexander Beregalov; +Cc: oleg, linux-kernel, Linus Torvalds, Andrew Morton
Alexander Beregalov wrote:
> From: Alexander Beregalov <a.beregalov@gmail.com>
>
> proc: fix warnings
>
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 3 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 4 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 5 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 6 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 7 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 8 has type 'u64'
> fs/proc/base.c:2429: warning: format '%llu' expects type 'long long
> unsigned int', but argument 9 has type 'u64'
right, my bad.
Acked-by: Andrea Righi <righi.andrea@gmail.com>
Thanks!
-Andrea
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-02 8:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-02 8:24 [PATCH] proc: fix warnings Alexander Beregalov
2008-08-02 8:50 ` Andrea Righi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.