Commit c0a2a096a0f1655e604370ab373bf96f6784b69b
1 parent
12a71a02
Fix build with DEBUG_PCI in pci_host.h enabled
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing
1 changed file
with
8 additions
and
5 deletions
hw/ppce500_pci.c
| ... | ... | @@ -89,8 +89,8 @@ static uint32_t pcie500_cfgaddr_readl(void *opaque, target_phys_addr_t addr) |
| 89 | 89 | { |
| 90 | 90 | PPCE500PCIState *pci = opaque; |
| 91 | 91 | |
| 92 | - pci_debug("%s: (addr:%Lx) -> value:%x\n", __func__, addr, | |
| 93 | - pci->pci_state.config_reg); | |
| 92 | + pci_debug("%s: (addr:" TARGET_FMT_plx ") -> value:%x\n", __func__, addr, | |
| 93 | + pci->pci_state.config_reg); | |
| 94 | 94 | return pci->pci_state.config_reg; |
| 95 | 95 | } |
| 96 | 96 | |
| ... | ... | @@ -105,7 +105,8 @@ static void pcie500_cfgaddr_writel(void *opaque, target_phys_addr_t addr, |
| 105 | 105 | { |
| 106 | 106 | PPCE500PCIState *controller = opaque; |
| 107 | 107 | |
| 108 | - pci_debug("%s: value:%x -> (addr%Lx)\n", __func__, value, addr); | |
| 108 | + pci_debug("%s: value:%x -> (addr:" TARGET_FMT_plx ")\n", __func__, value, | |
| 109 | + addr); | |
| 109 | 110 | controller->pci_state.config_reg = value & ~0x3; |
| 110 | 111 | } |
| 111 | 112 | |
| ... | ... | @@ -169,7 +170,8 @@ static uint32_t pci_reg_read4(void *opaque, target_phys_addr_t addr) |
| 169 | 170 | break; |
| 170 | 171 | } |
| 171 | 172 | |
| 172 | - pci_debug("%s: win:%lx(addr:%Lx) -> value:%x\n",__func__,win,addr,value); | |
| 173 | + pci_debug("%s: win:%lx(addr:" TARGET_FMT_plx ") -> value:%x\n", __func__, | |
| 174 | + win, addr, value); | |
| 173 | 175 | return value; |
| 174 | 176 | } |
| 175 | 177 | |
| ... | ... | @@ -187,7 +189,8 @@ static void pci_reg_write4(void *opaque, target_phys_addr_t addr, |
| 187 | 189 | |
| 188 | 190 | win = addr & 0xfe0; |
| 189 | 191 | |
| 190 | - pci_debug("%s: value:%x -> win:%lx(addr:%Lx)\n",__func__,value,win,addr); | |
| 192 | + pci_debug("%s: value:%x -> win:%lx(addr:" TARGET_FMT_plx ")\n", | |
| 193 | + __func__, value, win, addr); | |
| 191 | 194 | |
| 192 | 195 | switch (win) { |
| 193 | 196 | case PPCE500_PCI_OW1: | ... | ... |