ecryptfs: fix printk format warning
authorRandy Dunlap <[email protected]>
Tue, 28 Apr 2009 04:24:28 +0000 (21:24 -0700)
committerTyler Hicks <[email protected]>
Mon, 27 Apr 2009 18:10:06 +0000 (13:10 -0500)
fs/ecryptfs/inode.c:670: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Tyler Hicks <[email protected]>
Cc: Dustin Kirkland <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
fs/ecryptfs/inode.c

index 93bc0f8174a7a23614000c74a28dcec0bda39ee1..1940edd08307ea751f4d028eabc01cb1d6f247d5 100644 (file)
@@ -667,7 +667,7 @@ ecryptfs_readlink(struct dentry *dentry, char __user *buf, int bufsiz)
        lower_buf = kmalloc(lower_bufsiz, GFP_KERNEL);
        if (lower_buf == NULL) {
                printk(KERN_ERR "%s: Out of memory whilst attempting to "
-                      "kmalloc [%d] bytes\n", __func__, lower_bufsiz);
+                      "kmalloc [%zd] bytes\n", __func__, lower_bufsiz);
                rc = -ENOMEM;
                goto out;
        }