[PATCH -next] ramoops: fix printk format warnings
From: Randy Dunlap <hidden>
Date: 2012-01-31 02:51:13
Also in:
lkml
From: Randy Dunlap <redacted> 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 <redacted> 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;