Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/pci: Use printf extension %pR for struct resource

Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Joe Perches and committed by
Benjamin Herrenschmidt
518fdae2 ae9fd31a

+5 -6
+1 -2
arch/powerpc/kernel/pci_64.c
··· 193 193 hose->io_resource.start += io_virt_offset; 194 194 hose->io_resource.end += io_virt_offset; 195 195 196 - pr_debug(" hose->io_resource=0x%016llx...0x%016llx\n", 197 - hose->io_resource.start, hose->io_resource.end); 196 + pr_debug(" hose->io_resource=%pR\n", &hose->io_resource); 198 197 199 198 return 0; 200 199 }
+4 -4
arch/powerpc/sysdev/tsi108_dev.c
··· 83 83 memset(&tsi_eth_data, 0, sizeof(tsi_eth_data)); 84 84 85 85 ret = of_address_to_resource(np, 0, &r[0]); 86 - DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", 87 - __func__,r[0].name, r[0].start, r[0].end); 86 + DBG("%s: name:start->end = %s:%pR\n", 87 + __func__, r[0].name, &r[0]); 88 88 if (ret) 89 89 goto err; 90 90 ··· 92 92 r[1].start = irq_of_parse_and_map(np, 0); 93 93 r[1].end = irq_of_parse_and_map(np, 0); 94 94 r[1].flags = IORESOURCE_IRQ; 95 - DBG("%s: name:start->end = %s:0x%lx-> 0x%lx\n", 96 - __func__,r[1].name, r[1].start, r[1].end); 95 + DBG("%s: name:start->end = %s:%pR\n", 96 + __func__, r[1].name, &r[1]); 97 97 98 98 tsi_eth_dev = 99 99 platform_device_register_simple("tsi-ethernet", i++, &r[0],