提交 518fdae2 编写于 作者: J Joe Perches 提交者: Benjamin Herrenschmidt

powerpc/pci: 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: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 ae9fd31a
...@@ -193,8 +193,7 @@ int __devinit pcibios_map_io_space(struct pci_bus *bus) ...@@ -193,8 +193,7 @@ int __devinit pcibios_map_io_space(struct pci_bus *bus)
hose->io_resource.start += io_virt_offset; hose->io_resource.start += io_virt_offset;
hose->io_resource.end += io_virt_offset; hose->io_resource.end += io_virt_offset;
pr_debug(" hose->io_resource=0x%016llx...0x%016llx\n", pr_debug(" hose->io_resource=%pR\n", &hose->io_resource);
hose->io_resource.start, hose->io_resource.end);
return 0; return 0;
} }
......
...@@ -83,8 +83,8 @@ static int __init tsi108_eth_of_init(void) ...@@ -83,8 +83,8 @@ static int __init tsi108_eth_of_init(void)
memset(&tsi_eth_data, 0, sizeof(tsi_eth_data)); memset(&tsi_eth_data, 0, sizeof(tsi_eth_data));
ret = of_address_to_resource(np, 0, &r[0]); ret = of_address_to_resource(np, 0, &r[0]);
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", DBG("%s: name:start->end = %s:%pR\n",
__func__,r[0].name, r[0].start, r[0].end); __func__, r[0].name, &r[0]);
if (ret) if (ret)
goto err; goto err;
...@@ -92,8 +92,8 @@ static int __init tsi108_eth_of_init(void) ...@@ -92,8 +92,8 @@ static int __init tsi108_eth_of_init(void)
r[1].start = irq_of_parse_and_map(np, 0); r[1].start = irq_of_parse_and_map(np, 0);
r[1].end = irq_of_parse_and_map(np, 0); r[1].end = irq_of_parse_and_map(np, 0);
r[1].flags = IORESOURCE_IRQ; r[1].flags = IORESOURCE_IRQ;
DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", DBG("%s: name:start->end = %s:%pR\n",
__func__,r[1].name, r[1].start, r[1].end); __func__, r[1].name, &r[1]);
tsi_eth_dev = tsi_eth_dev =
platform_device_register_simple("tsi-ethernet", i++, &r[0], platform_device_register_simple("tsi-ethernet", i++, &r[0],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册