[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4F4D71D0.2040904@xenotime.net>
Date: Tue, 28 Feb 2012 16:31:12 -0800
From: Randy Dunlap <rdunlap@...otime.net>
To: Linus Torvalds <torvalds@...ux-foundation.org>
CC: Geert Uytterhoeven <geert@...ux-m68k.org>,
linux-kernel@...r.kernel.org, Al Viro <viro@...iv.linux.org.uk>,
Tyler Hicks <tyhicks@...onical.com>,
Dustin Kirkland <dustin.kirkland@...zang.com>,
ecryptfs@...r.kernel.org
Subject: [PATCH] ecryptfs: fix printk format warning for size_t
From: Randy Dunlap <rdunlap@...otime.net>
Fix printk format warning (from Linus's suggestion):
on i386:
fs/ecryptfs/miscdev.c:433:38: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'
and on x86_64:
fs/ecryptfs/miscdev.c:433:38: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'long unsigned int'
Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Tyler Hicks <tyhicks@...onical.com>
Cc: Dustin Kirkland <dustin.kirkland@...zang.com>
Cc: ecryptfs@...r.kernel.org
---
In case you didn't already make the change...
fs/ecryptfs/miscdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lnx-33-rc5.orig/fs/ecryptfs/miscdev.c
+++ lnx-33-rc5/fs/ecryptfs/miscdev.c
@@ -429,7 +429,7 @@ ecryptfs_miscdev_write(struct file *file
goto memdup;
} else if (count < MIN_MSG_PKT_SIZE || count > MAX_MSG_PKT_SIZE) {
printk(KERN_WARNING "%s: Acceptable packet size range is "
- "[%d-%lu], but amount of data written is [%zu].",
+ "[%d-%zu], but amount of data written is [%zu].",
__func__, MIN_MSG_PKT_SIZE, MAX_MSG_PKT_SIZE, count);
return -EINVAL;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists