[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F2764B9.6000402@xenotime.net>
Date: Mon, 30 Jan 2012 19:49:13 -0800
From: Randy Dunlap <rdunlap@...otime.net>
To: Stephen Rothwell <sfr@...b.auug.org.au>
CC: linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Greg KH <gregkh@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH -next] ramoops: fix printk format warnings
From: Randy Dunlap <rdunlap@...otime.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@...otime.net>
Cc: Greg K-H <gregkh@...e.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@...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@...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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists