From: Randy Dunlap <rdunlap@xenotime.net>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Greg KH <gregkh@suse.de>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH -next] ramoops: fix printk format warnings
Date: Mon, 30 Jan 2012 19:49:13 -0800 [thread overview]
Message-ID: <4F2764B9.6000402@xenotime.net> (raw)
In-Reply-To: <20120130144102.8d202c7d8eccd503a86b3053@canb.auug.org.au>
From: Randy Dunlap <rdunlap@xenotime.net>
Fix printk format warnings for phys_addr_t type variables:
drivers/char/ramoops.c:246:3: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'phys_addr_t'
drivers/char/ramoops.c:273:2: warning: format '%llx' expects type 'long long unsigned int', but argument 3 has type 'phys_addr_t'
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Greg K-H <gregkh@suse.de>
---
drivers/char/ramoops.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- linux-next-20120130.orig/drivers/char/ramoops.c
+++ linux-next-20120130/drivers/char/ramoops.c
@@ -244,7 +244,7 @@ static int __init ramoops_probe(struct p
if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) {
pr_err("request mem region (0x%lx@0x%llx) failed\n",
- cxt->size, cxt->phys_addr);
+ cxt->size, (unsigned long long)cxt->phys_addr);
err = -EINVAL;
goto fail_buf;
}
@@ -271,7 +271,8 @@ static int __init ramoops_probe(struct p
dump_oops = pdata->dump_oops;
pr_info("attached 0x%lx@0x%llx (%ux0x%zx)\n",
- cxt->size, cxt->phys_addr, cxt->max_count, cxt->record_size);
+ cxt->size, (unsigned long long)cxt->phys_addr,
+ cxt->max_count, cxt->record_size);
return 0;
next prev parent reply other threads:[~2012-01-31 2:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 3:41 linux-next: Tree for Jan 30 Stephen Rothwell
2012-01-30 19:40 ` [PATCH -next] cpufreq: fix gx-suspmod.c build Randy Dunlap
2012-01-30 18:55 ` Dave Jones
2012-01-30 19:42 ` [PATCH -next] sound: fix include/sound/core.h warning Randy Dunlap
2012-01-30 20:15 ` Takashi Iwai
2012-01-30 19:43 ` [PATCH -next] vgaarb.h: fix build warnings Randy Dunlap
2012-03-13 21:25 ` Randy Dunlap
2012-01-31 3:08 ` [PATCH -next] mtd: fix nand/docg4.c printk format warnings Randy Dunlap
2012-01-31 3:09 ` [PATCH -next] ext4: fix balloc.c printk format warning Randy Dunlap
2012-01-31 3:49 ` Randy Dunlap [this message]
2012-01-31 3:50 ` [PATCH -next] cifs: fix printk format warnings Randy Dunlap
2012-01-31 10:42 ` Jeff Layton
2012-01-31 13:43 ` Steve French
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=4F2764B9.6000402@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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;
as well as URLs for NNTP newsgroup(s).