Commit 0bec405e8ee390067e63265b3002aaac49d4eea8

Authored by Joe Perches
Committed by Ralf Baechle
1 parent a1181caac9

MIPS: Use printf extension %pR for struct resource

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>

Showing 1 changed file with 2 additions and 5 deletions Side-by-side Diff

arch/mips/txx9/generic/pci.c
... ... @@ -213,11 +213,8 @@
213 213  
214 214 pcic->mem_offset = 0; /* busaddr == physaddr */
215 215  
216   - printk(KERN_INFO "PCI: IO 0x%08llx-0x%08llx MEM 0x%08llx-0x%08llx\n",
217   - (unsigned long long)pcic->mem_resource[1].start,
218   - (unsigned long long)pcic->mem_resource[1].end,
219   - (unsigned long long)pcic->mem_resource[0].start,
220   - (unsigned long long)pcic->mem_resource[0].end);
  216 + printk(KERN_INFO "PCI: IO %pR MEM %pR\n",
  217 + &pcic->mem_resource[1], &pcic->mem_resource[0]);
221 218  
222 219 /* register_pci_controller() will request MEM resource */
223 220 release_resource(&pcic->mem_resource[0]);