Commit 1569fc29ef60fa1972115860b420fb40d238fac5
1 parent
36cbaae5
Fix Slavio interrupt controller debugging output
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3112 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
4 deletions
hw/slavio_intctl.c
... | ... | @@ -84,7 +84,7 @@ static uint32_t slavio_intctl_mem_readl(void *opaque, target_phys_addr_t addr) |
84 | 84 | ret = 0; |
85 | 85 | break; |
86 | 86 | } |
87 | - DPRINTF("read cpu %d reg 0x%x = %x\n", addr, ret); | |
87 | + DPRINTF("read cpu %d reg 0x" TARGET_FMT_plx " = %x\n", cpu, addr, ret); | |
88 | 88 | |
89 | 89 | return ret; |
90 | 90 | } |
... | ... | @@ -97,7 +97,7 @@ static void slavio_intctl_mem_writel(void *opaque, target_phys_addr_t addr, uint |
97 | 97 | |
98 | 98 | cpu = (addr & (MAX_CPUS - 1) * TARGET_PAGE_SIZE) >> 12; |
99 | 99 | saddr = (addr & INTCTL_MAXADDR) >> 2; |
100 | - DPRINTF("write cpu %d reg 0x%x = %x\n", cpu, addr, val); | |
100 | + DPRINTF("write cpu %d reg 0x" TARGET_FMT_plx " = %x\n", cpu, addr, val); | |
101 | 101 | switch (saddr) { |
102 | 102 | case 1: // clear pending softints |
103 | 103 | if (val & 0x4000) |
... | ... | @@ -151,7 +151,7 @@ static uint32_t slavio_intctlm_mem_readl(void *opaque, target_phys_addr_t addr) |
151 | 151 | ret = 0; |
152 | 152 | break; |
153 | 153 | } |
154 | - DPRINTF("read system reg 0x%x = %x\n", addr, ret); | |
154 | + DPRINTF("read system reg 0x" TARGET_FMT_plx " = %x\n", addr, ret); | |
155 | 155 | |
156 | 156 | return ret; |
157 | 157 | } |
... | ... | @@ -162,7 +162,7 @@ static void slavio_intctlm_mem_writel(void *opaque, target_phys_addr_t addr, uin |
162 | 162 | uint32_t saddr; |
163 | 163 | |
164 | 164 | saddr = (addr & INTCTLM_MASK) >> 2; |
165 | - DPRINTF("write system reg 0x%x = %x\n", addr, val); | |
165 | + DPRINTF("write system reg 0x" TARGET_FMT_plx " = %x\n", addr, val); | |
166 | 166 | switch (saddr) { |
167 | 167 | case 2: // clear (enable) |
168 | 168 | // Force clear unused bits | ... | ... |