MIPS: Use printf extension %pR for struct resource
authorJoe Perches <joe@perches.com>
Fri, 12 Nov 2010 21:37:52 +0000 (13:37 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jan 2011 18:30:21 +0000 (19:30 +0100)
Using %pR standardizes the struct resource output.

Signed-off-by: Joe Perches <joe@perches.com>
To: Jiri Kosina <trivial@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1772/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/txx9/generic/pci.c

index 96e69a00ffc84019b740b51eb9f75f795d031dba..85a87de17eb46f1197f92771a76b7812282aa4ff 100644 (file)
@@ -213,11 +213,8 @@ txx9_alloc_pci_controller(struct pci_controller *pcic,
 
        pcic->mem_offset = 0;   /* busaddr == physaddr */
 
-       printk(KERN_INFO "PCI: IO 0x%08llx-0x%08llx MEM 0x%08llx-0x%08llx\n",
-              (unsigned long long)pcic->mem_resource[1].start,
-              (unsigned long long)pcic->mem_resource[1].end,
-              (unsigned long long)pcic->mem_resource[0].start,
-              (unsigned long long)pcic->mem_resource[0].end);
+       printk(KERN_INFO "PCI: IO %pR MEM %pR\n",
+              &pcic->mem_resource[1], &pcic->mem_resource[0]);
 
        /* register_pci_controller() will request MEM resource */
        release_resource(&pcic->mem_resource[0]);