[PATCH 3/5] malta/pci/pci.c: Correct printk() formats
Joel Sherrill
joel at rtems.org
Thu Mar 9 22:18:18 UTC 2017
---
c/src/lib/libbsp/mips/malta/pci/pci.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/c/src/lib/libbsp/mips/malta/pci/pci.c b/c/src/lib/libbsp/mips/malta/pci/pci.c
index 5f8a7d4..0932f07 100644
--- a/c/src/lib/libbsp/mips/malta/pci/pci.c
+++ b/c/src/lib/libbsp/mips/malta/pci/pci.c
@@ -941,17 +941,17 @@ void print_bars(
printk( "*** BARs for slot=%d func=%d\n", slot, func );
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_0, &addr);
- printk("*** PCI DEVICE BAR0: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR0: 0x%lx\n", addr);
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_1, &addr);
- printk("*** PCI DEVICE BAR1: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR1: 0x%lx\n", addr);
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_2, &addr);
- printk("*** PCI DEVICE BAR2: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR2: 0x%lx\n", addr);
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_3, &addr);
- printk("*** PCI DEVICE BAR3: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR3: 0x%lx\n", addr);
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_4, &addr);
- printk("*** PCI DEVICE BAR4: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR4: 0x%lx\n", addr);
pci_read_config_dword (0, slot, func, PCI_BASE_ADDRESS_5, &addr);
- printk("*** PCI DEVICE BAR5: 0x%x\n", addr);
+ printk("*** PCI DEVICE BAR5: 0x%lx\n", addr);
}
void pci_memory_enable(
--
1.8.3.1
More information about the devel
mailing list