Skip to content

Commit

Permalink
mipsnet: Fix compiler warning in debug code
Browse files Browse the repository at this point in the history
size_t needs a different format specifier, so fix this.

Cc: Blue Swirl <[email protected]>
Signed-off-by: Stefan Weil <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
Stefan Weil authored and blueswirl committed Oct 3, 2010
1 parent d523d5d commit a4a7767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/mipsnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static ssize_t mipsnet_receive(VLANClientState *nc, const uint8_t *buf, size_t s
MIPSnetState *s = DO_UPCAST(NICState, nc, nc)->opaque;

#ifdef DEBUG_MIPSNET_RECEIVE
printf("mipsnet: receiving len=%d\n", size);
printf("mipsnet: receiving len=%zu\n", size);
#endif
if (!mipsnet_can_receive(nc))
return -1;
Expand Down

0 comments on commit a4a7767

Please sign in to comment.