Re: [PATCH] jffs2: printk arg. type warning

From: Randy.Dunlap
Date: Tue Nov 16 2004 - 13:28:22 EST



'%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@xxxxxxxx> 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;
}