* [PATCH] jffs2: printk arg. type warning
@ 2004-11-15 19:43 Randy.Dunlap
2004-11-16 17:51 ` David Woodhouse
0 siblings, 1 reply; 3+ messages in thread
From: Randy.Dunlap @ 2004-11-15 19:43 UTC (permalink / raw)
To: dwmw2, lkml
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
fix printk argument type warning:
fs/jffs2/gc.c:832: warning: signed size_t format, different type arg
(arg 3)
diffstat:=
fs/jffs2/gc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
--
[-- Attachment #2: jffs2_gc_printk.patch --]
[-- Type: text/x-patch, Size: 618 bytes --]
diff -Naurp ./fs/jffs2/gc.c~jffs2_gc_printk ./fs/jffs2/gc.c
--- ./fs/jffs2/gc.c~jffs2_gc_printk 2004-11-15 10:02:00.966820400 -0800
+++ ./fs/jffs2/gc.c 2004-11-15 11:00:29.375461216 -0800
@@ -828,7 +828,7 @@ static int jffs2_garbage_collect_deletio
continue;
}
if (retlen != rawlen) {
- printk(KERN_WARNING "jffs2_g_c_deletion_dirent(): Short read (%zd not %zd) reading header from obsolete node at %08x\n",
+ printk(KERN_WARNING "jffs2_g_c_deletion_dirent(): Short read (%zd not %ud) reading header from obsolete node at %08x\n",
retlen, rawlen, ref_offset(raw));
continue;
}
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] jffs2: printk arg. type warning
2004-11-15 19:43 [PATCH] jffs2: printk arg. type warning Randy.Dunlap
@ 2004-11-16 17:51 ` David Woodhouse
2004-11-16 18:14 ` Randy.Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2004-11-16 17:51 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: lkml
On Mon, 2004-11-15 at 11:43 -0800, Randy.Dunlap wrote:
> + printk(KERN_WARNING "jffs2_g_c_deletion_dirent(): Short read (%zd not %ud) reading header from obsolete node at %08x\n",fix printk argument type warning:
'%ud'?
--
dwmw2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] jffs2: printk arg. type warning
2004-11-16 17:51 ` David Woodhouse
@ 2004-11-16 18:14 ` Randy.Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy.Dunlap @ 2004-11-16 18:14 UTC (permalink / raw)
To: David Woodhouse; +Cc: lkml
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
> '%ud'?
ergh. Here it is, corrected.
fix printk argument type warning:
fs/jffs2/gc.c:832: warning: signed size_t format, different type arg
(arg 3)
diffstat:=
fs/jffs2/gc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
[-- Attachment #2: jffs2_gc_printk.patch --]
[-- Type: text/x-patch, Size: 616 bytes --]
diff -Naurp ./fs/jffs2/gc.c~jffs2_gc_printk ./fs/jffs2/gc.c
--- ./fs/jffs2/gc.c~jffs2_gc_printk 2004-11-15 10:02:00.966820400 -0800
+++ ./fs/jffs2/gc.c 2004-11-15 11:00:29.375461216 -0800
@@ -828,7 +828,7 @@ static int jffs2_garbage_collect_deletio
continue;
}
if (retlen != rawlen) {
- printk(KERN_WARNING "jffs2_g_c_deletion_dirent(): Short read (%zd not %zd) reading header from obsolete node at %08x\n",
+ printk(KERN_WARNING "jffs2_g_c_deletion_dirent(): Short read (%zd not %u) reading header from obsolete node at %08x\n",
retlen, rawlen, ref_offset(raw));
continue;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-16 18:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15 19:43 [PATCH] jffs2: printk arg. type warning Randy.Dunlap
2004-11-16 17:51 ` David Woodhouse
2004-11-16 18:14 ` Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox