]> err.no Git - linux-2.6/commitdiff
sysfs: printk format warning
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 1 May 2007 00:55:03 +0000 (17:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 3 May 2007 01:57:59 +0000 (18:57 -0700)
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 <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/sysfs/bin.c

index 8ea2a51ce883aa8ed73cf6bb8df7d7ed36cc9232..d3b9f5f07db149a38ecb03d0a44370d365ffb5d5 100644 (file)
@@ -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;