Skip to content

Commit

Permalink
powerpc/pci: Use printf extension %pR for struct resource
Browse files Browse the repository at this point in the history
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Joe Perches authored and Benjamin Herrenschmidt committed Dec 9, 2010
1 parent ae9fd31 commit 518fdae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ int __devinit pcibios_map_io_space(struct pci_bus *bus)
hose->io_resource.start += io_virt_offset;
hose->io_resource.end += io_virt_offset;

pr_debug(" hose->io_resource=0x%016llx...0x%016llx\n",
hose->io_resource.start, hose->io_resource.end);
pr_debug(" hose->io_resource=%pR\n", &hose->io_resource);

return 0;
}
Expand Down
8 changes: 4 additions & 4 deletions arch/powerpc/sysdev/tsi108_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ static int __init tsi108_eth_of_init(void)
memset(&tsi_eth_data, 0, sizeof(tsi_eth_data));

ret = of_address_to_resource(np, 0, &r[0]);
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n",
__func__,r[0].name, r[0].start, r[0].end);
DBG("%s: name:start->end = %s:%pR\n",
__func__, r[0].name, &r[0]);
if (ret)
goto err;

r[1].name = "tx";
r[1].start = irq_of_parse_and_map(np, 0);
r[1].end = irq_of_parse_and_map(np, 0);
r[1].flags = IORESOURCE_IRQ;
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n",
__func__,r[1].name, r[1].start, r[1].end);
DBG("%s: name:start->end = %s:%pR\n",
__func__, r[1].name, &r[1]);

tsi_eth_dev =
platform_device_register_simple("tsi-ethernet", i++, &r[0],
Expand Down

0 comments on commit 518fdae

Please sign in to comment.