lkml.org 
[lkml]   [2012]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] ramoops: fix printk format warnings
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;


\
 
 \ /
  Last update: 2012-01-31 03:53    [W:0.100 / U:4.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site