[PATCH -next] ramoops: fix printk format warnings
From: Randy Dunlap
Date: Mon Jan 30 2012 - 21:51:39 EST
From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
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@xxxxxxxxxxxx>
Cc: Greg K-H <gregkh@xxxxxxx>
---
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/