From: Zach Brown Date: Tue, 3 Oct 2006 08:16:06 +0000 (-0700) Subject: [PATCH] pr_debug: sysfs: use size_t length modifier in pr_debug format arguments X-Git-Tag: v2.6.19-rc1~230 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1fdf4150c3b4e486020d0ada787469900d66ed;p=linux-2.6 [PATCH] pr_debug: sysfs: use size_t length modifier in pr_debug format arguments sysfs: use size_t length modifier in pr_debug format arguments Signed-off-by: Zach Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index cf3786625b..146f1dedec 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -157,8 +157,8 @@ sysfs_read_file(struct file *file, char __user *buf, size_t count, loff_t *ppos) if ((retval = fill_read_buffer(file->f_dentry,buffer))) goto out; } - pr_debug("%s: count = %d, ppos = %lld, buf = %s\n", - __FUNCTION__,count,*ppos,buffer->page); + pr_debug("%s: count = %zd, ppos = %lld, buf = %s\n", + __FUNCTION__, count, *ppos, buffer->page); retval = flush_read_buffer(buffer,buf,count,ppos); out: up(&buffer->sem);