Skip to content

Commit

Permalink
sysfs: printk format warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rddunlap authored and gregkh committed May 3, 2007
1 parent 3265b54 commit 2609e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/sysfs/bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2609e7b

Please sign in to comment.