mirror of https://github.com/xemu-project/xemu.git
hw/net/stellaris_enet: Fix debug format strings
Fix various debug format strings which were incorrect for the data type, so that building with debug enabled is possible. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
a9171c4fb5
commit
eacd606ca7
|
@ -161,7 +161,7 @@ static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, si
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINTF("Received packet len=%d\n", size);
|
DPRINTF("Received packet len=%zu\n", size);
|
||||||
n = s->next_packet + s->np;
|
n = s->next_packet + s->np;
|
||||||
if (n >= 31)
|
if (n >= 31)
|
||||||
n -= 31;
|
n -= 31;
|
||||||
|
@ -276,7 +276,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset,
|
||||||
switch (offset) {
|
switch (offset) {
|
||||||
case 0x00: /* IACK */
|
case 0x00: /* IACK */
|
||||||
s->ris &= ~value;
|
s->ris &= ~value;
|
||||||
DPRINTF("IRQ ack %02x/%02x\n", value, s->ris);
|
DPRINTF("IRQ ack %02" PRIx64 "/%02x\n", value, s->ris);
|
||||||
stellaris_enet_update(s);
|
stellaris_enet_update(s);
|
||||||
/* Clearing TXER also resets the TX fifo. */
|
/* Clearing TXER also resets the TX fifo. */
|
||||||
if (value & SE_INT_TXER) {
|
if (value & SE_INT_TXER) {
|
||||||
|
@ -284,7 +284,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x04: /* IM */
|
case 0x04: /* IM */
|
||||||
DPRINTF("IRQ mask %02x/%02x\n", value, s->ris);
|
DPRINTF("IRQ mask %02" PRIx64 "/%02x\n", value, s->ris);
|
||||||
s->im = value;
|
s->im = value;
|
||||||
stellaris_enet_update(s);
|
stellaris_enet_update(s);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue