public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH -mmotm] ecryptfs: fix printk format warning
Date: Mon, 27 Apr 2009 21:24:28 -0700	[thread overview]
Message-ID: <49F684FC.7030403@oracle.com> (raw)
In-Reply-To: <200904272305.n3RN51mu031395@imap1.linux-foundation.org>

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

fs/ecryptfs/inode.c:670: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 fs/ecryptfs/inode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- mmotm-2009-0427-1545.orig/fs/ecryptfs/inode.c
+++ mmotm-2009-0427-1545/fs/ecryptfs/inode.c
@@ -667,7 +667,7 @@ ecryptfs_readlink(struct dentry *dentry,
 	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;
 	}

       reply	other threads:[~2009-04-28  4:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200904272305.n3RN51mu031395@imap1.linux-foundation.org>
2009-04-28  4:24 ` Randy Dunlap [this message]
2009-04-28 17:14 ` mmotm 2009-04-27-15-45 uploaded - iwl3945 oops Valdis.Kletnieks
2009-04-28 20:39   ` reinette chatre
2009-04-28 20:38     ` John W. Linville
2009-04-28 20:55       ` reinette chatre
2009-04-29 15:56     ` Valdis.Kletnieks
2009-04-30 22:46       ` reinette chatre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49F684FC.7030403@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox