[PATCH] smbfs compilation warning in 2.6.7

From: Randy.Dunlap
Date: Wed Jul 07 2004 - 11:46:32 EST


On Wed, 7 Jul 2004 15:33:46 +0200 (CEST) Leszek wrote:

|
| gcc 2.95.4 ( Debian Woody's default ) , kernel 2.6.7 from kernel.org
| gives me the following compilation warning:
|
| fs/smbfs/file.o
| in function smb_file_sendfile
| line 274: unknown conversion type character 'z' in format
|
| Please CC me in your answers as I am not subscribed to the list.



Use %Zd to eliminate a compiler warning in printk.

diffstat:=
fs/smbfs/file.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./fs/smbfs/file.c~smbfs_printk ./fs/smbfs/file.c
--- ./fs/smbfs/file.c~smbfs_printk 2004-06-15 22:19:53.000000000 -0700
+++ ./fs/smbfs/file.c 2004-07-07 09:39:21.886168160 -0700
@@ -271,7 +271,7 @@ smb_file_sendfile(struct file *file, lof

status = smb_revalidate_inode(dentry);
if (status) {
- PARANOIA("%s/%s validation failed, error=%zd\n",
+ PARANOIA("%s/%s validation failed, error=%Zd\n",
DENTRY_PATH(dentry), status);
goto out;
}

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/