Skip to content

Commit

Permalink
drivers/parisc: Use printf extension %pR for struct resource
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
JoePerches authored and hdeller committed Feb 20, 2013
1 parent fbd4843 commit 3fad9b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
13 changes: 5 additions & 8 deletions drivers/parisc/dino.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
bus->self->resource[i].start,
bus->self->resource[i].end);
&bus->self->resource[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,
bus->self->resource[i].start,
bus->self->resource[i].end);
&bus->self->resource[i]);
}
}

Expand Down Expand Up @@ -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]);
if (result < 0) {
printk(KERN_ERR "%s: failed to claim PCI Bus address "
"space %d (0x%lx-0x%lx)!\n", name, i,
(unsigned long)res[i].start, (unsigned long)res[i].end);
"space %d (%pR)!\n", name, i, &res[i]);
return result;
}
}
Expand Down
6 changes: 2 additions & 4 deletions drivers/parisc/hppb.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,8 @@ static int hppb_probe(struct parisc_device *dev)

status = ccio_request_resource(dev, &card->mmio_region);
if(status < 0) {
printk(KERN_ERR "%s: failed to claim HP-PB "
"bus space (0x%08llx, 0x%08llx)\n",
__FILE__, (unsigned long long) card->mmio_region.start,
(unsigned long long) card->mmio_region.end);
printk(KERN_ERR "%s: failed to claim HP-PB bus space (%pR)\n",
__FILE__, &card->mmio_region);
}

return 0;
Expand Down

0 comments on commit 3fad9b8

Please sign in to comment.