diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2014-05-13 16:09:37 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-05-13 16:09:37 +0100 |
commit | eacd606ca726b15ce9a5f0871f0c6598dbc8d6ae (patch) | |
tree | 675b059e6b445cbf200dcd42eea13465ffd3ed8a /hw | |
parent | a9171c4fb570b9c6f65955de03d3e38d2e9b0fdf (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/net/stellaris_enet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c index 2079fc691f..1cb95e012f 100644 --- a/hw/net/stellaris_enet.c +++ b/hw/net/stellaris_enet.c @@ -161,7 +161,7 @@ static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, si return -1; } - DPRINTF("Received packet len=%d\n", size); + DPRINTF("Received packet len=%zu\n", size); n = s->next_packet + s->np; if (n >= 31) n -= 31; @@ -276,7 +276,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, switch (offset) { case 0x00: /* IACK */ 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); /* Clearing TXER also resets the TX fifo. */ if (value & SE_INT_TXER) { @@ -284,7 +284,7 @@ static void stellaris_enet_write(void *opaque, hwaddr offset, } break; 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; stellaris_enet_update(s); break; |