提交 3fad9b8d 编写于 作者: J Joe Perches 提交者: Helge Deller

drivers/parisc: Use printf extension %pR for struct resource

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NHelge Deller <deller@gmx.de>
上级 fbd48433
...@@ -580,15 +580,13 @@ dino_fixup_bus(struct pci_bus *bus) ...@@ -580,15 +580,13 @@ dino_fixup_bus(struct pci_bus *bus)
} }
DBG("DEBUG %s assigning %d [0x%lx,0x%lx]\n", DBG("DEBUG %s assigning %d [%pR]\n",
dev_name(&bus->self->dev), i, dev_name(&bus->self->dev), i,
bus->self->resource[i].start, &bus->self->resource[i]);
bus->self->resource[i].end);
WARN_ON(pci_assign_resource(bus->self, i)); WARN_ON(pci_assign_resource(bus->self, i));
DBG("DEBUG %s after assign %d [0x%lx,0x%lx]\n", DBG("DEBUG %s after assign %d [%pR]\n",
dev_name(&bus->self->dev), i, dev_name(&bus->self->dev), i,
bus->self->resource[i].start, &bus->self->resource[i]);
bus->self->resource[i].end);
} }
} }
...@@ -772,8 +770,7 @@ dino_bridge_init(struct dino_device *dino_dev, const char *name) ...@@ -772,8 +770,7 @@ dino_bridge_init(struct dino_device *dino_dev, const char *name)
result = ccio_request_resource(dino_dev->hba.dev, &res[i]); result = ccio_request_resource(dino_dev->hba.dev, &res[i]);
if (result < 0) { if (result < 0) {
printk(KERN_ERR "%s: failed to claim PCI Bus address " printk(KERN_ERR "%s: failed to claim PCI Bus address "
"space %d (0x%lx-0x%lx)!\n", name, i, "space %d (%pR)!\n", name, i, &res[i]);
(unsigned long)res[i].start, (unsigned long)res[i].end);
return result; return result;
} }
} }
......
...@@ -74,10 +74,8 @@ static int hppb_probe(struct parisc_device *dev) ...@@ -74,10 +74,8 @@ static int hppb_probe(struct parisc_device *dev)
status = ccio_request_resource(dev, &card->mmio_region); status = ccio_request_resource(dev, &card->mmio_region);
if(status < 0) { if(status < 0) {
printk(KERN_ERR "%s: failed to claim HP-PB " printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
"bus space (0x%08llx, 0x%08llx)\n", __FILE__, &card->mmio_region);
__FILE__, (unsigned long long) card->mmio_region.start,
(unsigned long long) card->mmio_region.end);
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册