* [PATCH -next] exofs: fix printk format warnings
[not found] <20090326190130.54fc6fde.sfr@canb.auug.org.au>
@ 2009-03-26 21:44 ` Randy Dunlap
2009-03-30 8:14 ` Boaz Harrosh
2009-03-30 16:15 ` Geert Uytterhoeven
0 siblings, 2 replies; 3+ messages in thread
From: Randy Dunlap @ 2009-03-26 21:44 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, LKML, scsi, Boaz Harrosh
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix exofs printk format warnings:
fs/exofs/inode.c:184: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
fs/exofs/inode.c:291: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
fs/exofs/inode.c:373: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
fs/exofs/inode.c:461: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
fs/exofs/inode.c:534: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
fs/exofs/inode.c:610: warning: format '%zx' expects type 'size_t', but argument 5 has type 'long unsigned int'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
cc: Boaz Harrosh <bharrosh@panasas.com>
---
fs/exofs/inode.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--- linux-next-20090325.orig/fs/exofs/inode.c
+++ linux-next-20090325/fs/exofs/inode.c
@@ -182,7 +182,7 @@ static int __readpages_done(struct osd_r
good_bytes = pcol->length - resid;
EXOFS_DBGMSG("readpages_done(%ld) good_bytes=%llx"
- " length=%zx nr_pages=%u\n",
+ " length=%lx nr_pages=%u\n",
pcol->inode->i_ino, _LLU(good_bytes), pcol->length,
pcol->nr_pages);
@@ -288,7 +288,7 @@ static int read_exec(struct page_collect
atomic_inc(&pcol->sbi->s_curr_pending);
- EXOFS_DBGMSG("read_exec obj=%llx start=%llx length=%zx\n",
+ EXOFS_DBGMSG("read_exec obj=%llx start=%llx length=%lx\n",
obj.id, _LLU(i_start), pcol->length);
/* pages ownership was passed to pcol_copy */
@@ -371,7 +371,7 @@ try_again:
ret = pcol_add_page(pcol, page, len);
if (ret) {
EXOFS_DBGMSG("Failed pcol_add_page pages[i]=%p "
- "len=%zx nr_pages=%u length=%zx\n",
+ "len=%zx nr_pages=%u length=%lx\n",
page, len, pcol->nr_pages, pcol->length);
/* split the request, and start again with current page */
@@ -459,7 +459,7 @@ static void writepages_done(struct osd_r
good_bytes = pcol->length - resid;
EXOFS_DBGMSG("writepages_done(%lx) good_bytes=%llx"
- " length=%zx nr_pages=%u\n",
+ " length=%lx nr_pages=%u\n",
pcol->inode->i_ino, _LLU(good_bytes), pcol->length,
pcol->nr_pages);
@@ -531,7 +531,7 @@ static int write_exec(struct page_collec
}
atomic_inc(&pcol->sbi->s_curr_pending);
- EXOFS_DBGMSG("write_exec(%lx, %lx) start=%llx length=%zx\n",
+ EXOFS_DBGMSG("write_exec(%lx, %lx) start=%llx length=%lx\n",
pcol->inode->i_ino, pcol->pg_first, _LLU(i_start),
pcol->length);
/* pages ownership was passed to pcol_copy */
@@ -608,7 +608,7 @@ try_again:
ret = pcol_add_page(pcol, page, len);
if (unlikely(ret)) {
EXOFS_DBGMSG("Failed pcol_add_page "
- "nr_pages=%u total_length=%zx\n",
+ "nr_pages=%u total_length=%lx\n",
pcol->nr_pages, pcol->length);
/* split the request, next loop will start again */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] exofs: fix printk format warnings
2009-03-26 21:44 ` [PATCH -next] exofs: fix printk format warnings Randy Dunlap
@ 2009-03-30 8:14 ` Boaz Harrosh
2009-03-30 16:15 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Boaz Harrosh @ 2009-03-30 8:14 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Stephen Rothwell, linux-next, LKML, scsi
On 03/26/2009 11:44 PM, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix exofs printk format warnings:
>
> fs/exofs/inode.c:184: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:291: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:373: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
> fs/exofs/inode.c:461: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:534: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
> fs/exofs/inode.c:610: warning: format '%zx' expects type 'size_t', but argument 5 has type 'long unsigned int'
>
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> cc: Boaz Harrosh <bharrosh@panasas.com>
Thanks, much obliged.
Applied, it will be pushed to linux-next and for-linus branches as part of the
2.6.30 patchset. (Later today)
Boaz
> ---
> fs/exofs/inode.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> --- linux-next-20090325.orig/fs/exofs/inode.c
> +++ linux-next-20090325/fs/exofs/inode.c
> @@ -182,7 +182,7 @@ static int __readpages_done(struct osd_r
> good_bytes = pcol->length - resid;
>
> EXOFS_DBGMSG("readpages_done(%ld) good_bytes=%llx"
> - " length=%zx nr_pages=%u\n",
> + " length=%lx nr_pages=%u\n",
> pcol->inode->i_ino, _LLU(good_bytes), pcol->length,
> pcol->nr_pages);
>
> @@ -288,7 +288,7 @@ static int read_exec(struct page_collect
>
> atomic_inc(&pcol->sbi->s_curr_pending);
>
> - EXOFS_DBGMSG("read_exec obj=%llx start=%llx length=%zx\n",
> + EXOFS_DBGMSG("read_exec obj=%llx start=%llx length=%lx\n",
> obj.id, _LLU(i_start), pcol->length);
>
> /* pages ownership was passed to pcol_copy */
> @@ -371,7 +371,7 @@ try_again:
> ret = pcol_add_page(pcol, page, len);
> if (ret) {
> EXOFS_DBGMSG("Failed pcol_add_page pages[i]=%p "
> - "len=%zx nr_pages=%u length=%zx\n",
> + "len=%zx nr_pages=%u length=%lx\n",
> page, len, pcol->nr_pages, pcol->length);
>
> /* split the request, and start again with current page */
> @@ -459,7 +459,7 @@ static void writepages_done(struct osd_r
> good_bytes = pcol->length - resid;
>
> EXOFS_DBGMSG("writepages_done(%lx) good_bytes=%llx"
> - " length=%zx nr_pages=%u\n",
> + " length=%lx nr_pages=%u\n",
> pcol->inode->i_ino, _LLU(good_bytes), pcol->length,
> pcol->nr_pages);
>
> @@ -531,7 +531,7 @@ static int write_exec(struct page_collec
> }
>
> atomic_inc(&pcol->sbi->s_curr_pending);
> - EXOFS_DBGMSG("write_exec(%lx, %lx) start=%llx length=%zx\n",
> + EXOFS_DBGMSG("write_exec(%lx, %lx) start=%llx length=%lx\n",
> pcol->inode->i_ino, pcol->pg_first, _LLU(i_start),
> pcol->length);
> /* pages ownership was passed to pcol_copy */
> @@ -608,7 +608,7 @@ try_again:
> ret = pcol_add_page(pcol, page, len);
> if (unlikely(ret)) {
> EXOFS_DBGMSG("Failed pcol_add_page "
> - "nr_pages=%u total_length=%zx\n",
> + "nr_pages=%u total_length=%lx\n",
> pcol->nr_pages, pcol->length);
>
> /* split the request, next loop will start again */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] exofs: fix printk format warnings
2009-03-26 21:44 ` [PATCH -next] exofs: fix printk format warnings Randy Dunlap
2009-03-30 8:14 ` Boaz Harrosh
@ 2009-03-30 16:15 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2009-03-30 16:15 UTC (permalink / raw)
To: Randy Dunlap; +Cc: Stephen Rothwell, linux-next, LKML, scsi, Boaz Harrosh
On Thu, Mar 26, 2009 at 23:44, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
>
> Fix exofs printk format warnings:
>
> fs/exofs/inode.c:184: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:291: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:373: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
> fs/exofs/inode.c:461: warning: format '%zx' expects type 'size_t', but argument 6 has type 'long unsigned int'
> fs/exofs/inode.c:534: warning: format '%zx' expects type 'size_t', but argument 7 has type 'long unsigned int'
> fs/exofs/inode.c:610: warning: format '%zx' expects type 'size_t', but argument 5 has type 'long unsigned
It also wouldn't hurt to
- kill EXOFS_DBGMSG()
- s/EXOFS_DBGMSG/pr_debug/g
- #define pr_fmt(fmt) "%s: " fmt, __func__
That way we always get printf()-style warning checking, even if
CONFIG_EXOFS_DEBUG
is not enabled.
Similar for EXOFS_ERR() -> pr_err()
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-30 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20090326190130.54fc6fde.sfr@canb.auug.org.au>
2009-03-26 21:44 ` [PATCH -next] exofs: fix printk format warnings Randy Dunlap
2009-03-30 8:14 ` Boaz Harrosh
2009-03-30 16:15 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox