Skip to contentSkip to conversation

sysfs: printk format warning

PATCH New Randy Dunlap 1 participant 1 message May 1, 2007 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysfs: printk format warning

From: Randy Dunlap <[email protected]>

Fix sysfs printk format warning:
fs/sysfs/bin.c:62: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

---
 fs/sysfs/bin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/sysfs/bin.c +1 -1
@@ -59,7 +59,7 @@ read(struct file * file, char __user * u
 	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;