Skip to content

Commit

Permalink
ramoops: fix printk format warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Greg Kroah-Hartman committed May 16, 2012
1 parent 9ba80d9 commit d109a67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/char/ramoops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;

Expand Down

0 comments on commit d109a67

Please sign in to comment.