提交 f9a5279c 编写于 作者: J Joe Perches 提交者: David Woodhouse

mtd: maps: Use printf extension %pR for struct resource

Using %pR standardizes the struct resource output.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 9118ea32
...@@ -149,11 +149,8 @@ static int __devinit amd76xrom_init_one (struct pci_dev *pdev, ...@@ -149,11 +149,8 @@ static int __devinit amd76xrom_init_one (struct pci_dev *pdev,
if (request_resource(&iomem_resource, &window->rsrc)) { if (request_resource(&iomem_resource, &window->rsrc)) {
window->rsrc.parent = NULL; window->rsrc.parent = NULL;
printk(KERN_ERR MOD_NAME printk(KERN_ERR MOD_NAME
" %s(): Unable to register resource" " %s(): Unable to register resource %pR - kernel bug?\n",
" 0x%.16llx-0x%.16llx - kernel bug?\n", __func__, &window->rsrc);
__func__,
(unsigned long long)window->rsrc.start,
(unsigned long long)window->rsrc.end);
} }
......
...@@ -178,11 +178,8 @@ static int __devinit ck804xrom_init_one (struct pci_dev *pdev, ...@@ -178,11 +178,8 @@ static int __devinit ck804xrom_init_one (struct pci_dev *pdev,
if (request_resource(&iomem_resource, &window->rsrc)) { if (request_resource(&iomem_resource, &window->rsrc)) {
window->rsrc.parent = NULL; window->rsrc.parent = NULL;
printk(KERN_ERR MOD_NAME printk(KERN_ERR MOD_NAME
" %s(): Unable to register resource" " %s(): Unable to register resource %pR - kernel bug?\n",
" 0x%.016llx-0x%.016llx - kernel bug?\n", __func__, &window->rsrc);
__func__,
(unsigned long long)window->rsrc.start,
(unsigned long long)window->rsrc.end);
} }
......
...@@ -242,12 +242,9 @@ static int __devinit esb2rom_init_one(struct pci_dev *pdev, ...@@ -242,12 +242,9 @@ static int __devinit esb2rom_init_one(struct pci_dev *pdev,
window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
if (request_resource(&iomem_resource, &window->rsrc)) { if (request_resource(&iomem_resource, &window->rsrc)) {
window->rsrc.parent = NULL; window->rsrc.parent = NULL;
printk(KERN_DEBUG MOD_NAME printk(KERN_DEBUG MOD_NAME ": "
": %s(): Unable to register resource" "%s(): Unable to register resource %pR - kernel bug?\n",
" 0x%.08llx-0x%.08llx - kernel bug?\n", __func__, &window->rsrc);
__func__,
(unsigned long long)window->rsrc.start,
(unsigned long long)window->rsrc.end);
} }
/* Map the firmware hub into my address space. */ /* Map the firmware hub into my address space. */
......
...@@ -175,12 +175,9 @@ static int __devinit ichxrom_init_one (struct pci_dev *pdev, ...@@ -175,12 +175,9 @@ static int __devinit ichxrom_init_one (struct pci_dev *pdev,
window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY; window->rsrc.flags = IORESOURCE_MEM | IORESOURCE_BUSY;
if (request_resource(&iomem_resource, &window->rsrc)) { if (request_resource(&iomem_resource, &window->rsrc)) {
window->rsrc.parent = NULL; window->rsrc.parent = NULL;
printk(KERN_DEBUG MOD_NAME printk(KERN_DEBUG MOD_NAME ": "
": %s(): Unable to register resource" "%s(): Unable to register resource %pR - kernel bug?\n",
" 0x%.16llx-0x%.16llx - kernel bug?\n", __func__, &window->rsrc);
__func__,
(unsigned long long)window->rsrc.start,
(unsigned long long)window->rsrc.end);
} }
/* Map the firmware hub into my address space. */ /* Map the firmware hub into my address space. */
......
...@@ -274,9 +274,7 @@ static int __devinit of_flash_probe(struct platform_device *dev, ...@@ -274,9 +274,7 @@ static int __devinit of_flash_probe(struct platform_device *dev,
continue; continue;
} }
dev_dbg(&dev->dev, "of_flash device: %.8llx-%.8llx\n", dev_dbg(&dev->dev, "of_flash device: %pR\n", &res);
(unsigned long long)res.start,
(unsigned long long)res.end);
err = -EBUSY; err = -EBUSY;
res_size = resource_size(&res); res_size = resource_size(&res);
......
...@@ -166,9 +166,8 @@ static int __init init_scx200_docflash(void) ...@@ -166,9 +166,8 @@ static int __init init_scx200_docflash(void)
outl(pmr, scx200_cb_base + SCx200_PMR); outl(pmr, scx200_cb_base + SCx200_PMR);
} }
printk(KERN_INFO NAME ": DOCCS mapped at 0x%llx-0x%llx, width %d\n", printk(KERN_INFO NAME ": DOCCS mapped at %pR, width %d\n",
(unsigned long long)docmem.start, &docmem, width);
(unsigned long long)docmem.end, width);
scx200_docflash_map.size = size; scx200_docflash_map.size = size;
if (width == 8) if (width == 8)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册