summaryrefslogtreecommitdiffstats
path: root/drivers/char/ramoops.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-05-03 15:45:03 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-16 08:06:34 -0700
commitd109a674a3685d43f16da5cc4cb8b927d07c436d (patch)
treeb7c5dc86e7e63d8a928dc22c412a80546828b13b /drivers/char/ramoops.c
parent9ba80d99c86f1b76df891afdf39b44df38bbd35b (diff)
downloadop-kernel-dev-d109a674a3685d43f16da5cc4cb8b927d07c436d.zip
op-kernel-dev-d109a674a3685d43f16da5cc4cb8b927d07c436d.tar.gz
ramoops: fix printk format warnings
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: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/ramoops.c')
-rw-r--r--drivers/char/ramoops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index a6796c0..b8b8542 100644
--- a/drivers/char/ramoops.c
+++ b/drivers/char/ramoops.c
@@ -243,7 +243,7 @@ static int __init ramoops_probe(struct platform_device *pdev)
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;
}
@@ -270,7 +270,8 @@ static int __init ramoops_probe(struct platform_device *pdev)
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;
OpenPOWER on IntegriCloud