mtd: maps: Use printf extension %pR for struct resource
authorJoe Perches <joe@perches.com>
Fri, 12 Nov 2010 21:37:57 +0000 (13:37 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 3 Dec 2010 16:29:54 +0000 (16:29 +0000)
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/amd76xrom.c
drivers/mtd/maps/ck804xrom.c
drivers/mtd/maps/esb2rom.c
drivers/mtd/maps/ichxrom.c
drivers/mtd/maps/physmap_of.c
drivers/mtd/maps/scx200_docflash.c

index 19fe92db0c46fb90051c97146be5a170dff46a9a..77d64ce19e9f51828e301d6f6eb23f038fef6951 100644 (file)
@@ -149,11 +149,8 @@ static int __devinit amd76xrom_init_one (struct pci_dev *pdev,
        if (request_resource(&iomem_resource, &window->rsrc)) {
                window->rsrc.parent = NULL;
                printk(KERN_ERR MOD_NAME
-                       " %s(): Unable to register resource"
-                       " 0x%.16llx-0x%.16llx - kernel bug?\n",
-                       __func__,
-                       (unsigned long long)window->rsrc.start,
-                       (unsigned long long)window->rsrc.end);
+                      " %s(): Unable to register resource %pR - kernel bug?\n",
+                      __func__, &window->rsrc);
        }
 
 
index ddb462bea9b51727593cdb5c67ca809f5807edeb..5fdb7b26cea3e836e517dda937ab92fb72f6e0e4 100644 (file)
@@ -178,11 +178,8 @@ static int __devinit ck804xrom_init_one (struct pci_dev *pdev,
        if (request_resource(&iomem_resource, &window->rsrc)) {
                window->rsrc.parent = NULL;
                printk(KERN_ERR MOD_NAME
-                       " %s(): Unable to register resource"
-                       " 0x%.016llx-0x%.016llx - kernel bug?\n",
-                       __func__,
-                       (unsigned long long)window->rsrc.start,
-                       (unsigned long long)window->rsrc.end);
+                      " %s(): Unable to register resource %pR - kernel bug?\n",
+                       __func__, &window->rsrc);
        }
 
 
index d12c93dc1aad9aa843decb459f6d4964fbe24eff..4feb7507ab7c9a4906f66a735a176668e665656a 100644 (file)
@@ -242,12 +242,9 @@ static int __devinit esb2rom_init_one(struct pci_dev *pdev,
        window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
        if (request_resource(&iomem_resource, &window->rsrc)) {
                window->rsrc.parent = NULL;
-               printk(KERN_DEBUG MOD_NAME
-                       ": %s(): Unable to register resource"
-                       " 0x%.08llx-0x%.08llx - kernel bug?\n",
-                       __func__,
-                       (unsigned long long)window->rsrc.start,
-                       (unsigned long long)window->rsrc.end);
+               printk(KERN_DEBUG MOD_NAME ": "
+                      "%s(): Unable to register resource %pR - kernel bug?\n",
+                       __func__, &window->rsrc);
        }
 
        /* Map the firmware hub into my address space. */
index f102bf243a7418b5482b71ec8833ea205fc50355..1337a4191a0cc3a8086049c308d14abab25622a3 100644 (file)
@@ -175,12 +175,9 @@ static int __devinit ichxrom_init_one (struct pci_dev *pdev,
        window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
        if (request_resource(&iomem_resource, &window->rsrc)) {
                window->rsrc.parent = NULL;
-               printk(KERN_DEBUG MOD_NAME
-                       ": %s(): Unable to register resource"
-                       " 0x%.16llx-0x%.16llx - kernel bug?\n",
-                       __func__,
-                       (unsigned long long)window->rsrc.start,
-                       (unsigned long long)window->rsrc.end);
+               printk(KERN_DEBUG MOD_NAME ": "
+                      "%s(): Unable to register resource %pR - kernel bug?\n",
+                      __func__, &window->rsrc);
        }
 
        /* Map the firmware hub into my address space. */
index 9861814aa027a3745b8e3112db3dd85370dd561a..8506578e6a352084b37593492e13751f60eb4925 100644 (file)
@@ -274,9 +274,7 @@ static int __devinit of_flash_probe(struct platform_device *dev,
                        continue;
                }
 
-               dev_dbg(&dev->dev, "of_flash device: %.8llx-%.8llx\n",
-                       (unsigned long long)res.start,
-                       (unsigned long long)res.end);
+               dev_dbg(&dev->dev, "of_flash device: %pR\n", &res);
 
                err = -EBUSY;
                res_size = resource_size(&res);
index b5391ebb736e1bac6b4175d7e897670dc38e7ea9..027e628a4f1d912791668f21d2e1787e6a4523f5 100644 (file)
@@ -166,9 +166,8 @@ static int __init init_scx200_docflash(void)
                outl(pmr, scx200_cb_base + SCx200_PMR);
        }
 
-               printk(KERN_INFO NAME ": DOCCS mapped at 0x%llx-0x%llx, width %d\n",
-                       (unsigned long long)docmem.start,
-                       (unsigned long long)docmem.end, width);
+       printk(KERN_INFO NAME ": DOCCS mapped at %pR, width %d\n",
+              &docmem, width);
 
        scx200_docflash_map.size = size;
        if (width == 8)