mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sysfs: printk format warning
@ 2007-05-01  0:55 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2007-05-01  0:55 UTC (permalink / raw)
  To: lkml; +Cc: akpm, gregkh

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 fs/sysfs/bin.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.21-git3.orig/fs/sysfs/bin.c
+++ linux-2.6.21-git3/fs/sysfs/bin.c
@@ -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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-01  0:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01  0:55 [PATCH] sysfs: printk format warning Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®