hw: fix some debug message format strings
Signed-off-by: Alyssa Milburn <fuzzie@fuzzie.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
3fc63c3f33
commit
2f448e415f
@ -49,7 +49,8 @@ static void macio_nvram_writeb(void *opaque, hwaddr addr,
|
|||||||
|
|
||||||
addr = (addr >> s->it_shift) & (s->size - 1);
|
addr = (addr >> s->it_shift) & (s->size - 1);
|
||||||
s->data[addr] = value;
|
s->data[addr] = value;
|
||||||
NVR_DPRINTF("writeb addr %04" PHYS_PRIx " val %" PRIx64 "\n", addr, value);
|
NVR_DPRINTF("writeb addr %04" HWADDR_PRIx " val %" PRIx64 "\n",
|
||||||
|
addr, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint64_t macio_nvram_readb(void *opaque, hwaddr addr,
|
static uint64_t macio_nvram_readb(void *opaque, hwaddr addr,
|
||||||
@ -60,7 +61,8 @@ static uint64_t macio_nvram_readb(void *opaque, hwaddr addr,
|
|||||||
|
|
||||||
addr = (addr >> s->it_shift) & (s->size - 1);
|
addr = (addr >> s->it_shift) & (s->size - 1);
|
||||||
value = s->data[addr];
|
value = s->data[addr];
|
||||||
NVR_DPRINTF("readb addr %04x val %x\n", (int)addr, value);
|
NVR_DPRINTF("readb addr %04" HWADDR_PRIx " val %" PRIx32 "\n",
|
||||||
|
addr, value);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -120,7 +120,7 @@ static void unin_data_write(void *opaque, hwaddr addr,
|
|||||||
{
|
{
|
||||||
UNINState *s = opaque;
|
UNINState *s = opaque;
|
||||||
PCIHostState *phb = PCI_HOST_BRIDGE(s);
|
PCIHostState *phb = PCI_HOST_BRIDGE(s);
|
||||||
UNIN_DPRINTF("write addr %" TARGET_FMT_plx " len %d val %"PRIx64"\n",
|
UNIN_DPRINTF("write addr " TARGET_FMT_plx " len %d val %"PRIx64"\n",
|
||||||
addr, len, val);
|
addr, len, val);
|
||||||
pci_data_write(phb->bus,
|
pci_data_write(phb->bus,
|
||||||
unin_get_config_reg(phb->config_reg, addr),
|
unin_get_config_reg(phb->config_reg, addr),
|
||||||
@ -137,7 +137,7 @@ static uint64_t unin_data_read(void *opaque, hwaddr addr,
|
|||||||
val = pci_data_read(phb->bus,
|
val = pci_data_read(phb->bus,
|
||||||
unin_get_config_reg(phb->config_reg, addr),
|
unin_get_config_reg(phb->config_reg, addr),
|
||||||
len);
|
len);
|
||||||
UNIN_DPRINTF("read addr %" TARGET_FMT_plx " len %d val %x\n",
|
UNIN_DPRINTF("read addr " TARGET_FMT_plx " len %d val %x\n",
|
||||||
addr, len, val);
|
addr, len, val);
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user