]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ramoops: fix printk format warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 4 Apr 2012 00:08:38 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:56 +0000 (14:45 +1000)
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>
Cc: Greg Kroah-Hartman <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/char/ramoops.c

index a6796c0610d24cbd207ba3d8380d9761cdc74de3..b8b8542a5105dd78976bf456a590d81cca834248 100644 (file)
@@ -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;