From: Randy Dunlap Date: Tue, 1 May 2007 00:55:03 +0000 (-0700) Subject: sysfs: printk format warning X-Git-Tag: v2.6.22-rc1~1038^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2609e7b9bebfd433254c02538ba803dc516ff674;p=linux-2.6 sysfs: printk format warning Fix sysfs printk format warning: fs/sysfs/bin.c:62: warning: format '%d' expects type 'int', but argument 4 has type 'size_t' Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/sysfs/bin.c b/fs/sysfs/bin.c index 8ea2a51ce8..d3b9f5f07d 100644 --- a/fs/sysfs/bin.c +++ b/fs/sysfs/bin.c @@ -59,7 +59,7 @@ read(struct file * file, char __user * userbuf, size_t count, loff_t * off) if (copy_to_user(userbuf, buffer, count)) return -EFAULT; - pr_debug("offs = %lld, *off = %lld, count = %d\n", offs, *off, count); + pr_debug("offs = %lld, *off = %lld, count = %zd\n", offs, *off, count); *off = offs + count;