From: Andrey Smirnov Date: Mon, 28 Nov 2016 18:13:15 +0000 (-0800) Subject: fsl_etsec: Fix various small problems in hexdump code X-Git-Tag: qemu-xen-4.9.0-rc1~20^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9f5832d34b0c155e9538a745c80e441aed257670;p=qemu-xen.git fsl_etsec: Fix various small problems in hexdump code Fix various small problems in hexdump code, such as: - Reference to non-existing field etsec->nic->nc.name is replaced with nc->name - Type mismatch warnings Signed-off-by: Andrey Smirnov Signed-off-by: Jason Wang --- diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index 951c5f0038..fadf9c8faf 100644 --- a/hw/net/fsl_etsec/etsec.c +++ b/hw/net/fsl_etsec/etsec.c @@ -348,8 +348,8 @@ static ssize_t etsec_receive(NetClientState *nc, eTSEC *etsec = qemu_get_nic_opaque(nc); #if defined(HEX_DUMP) - fprintf(stderr, "%s receive size:%d\n", etsec->nic->nc.name, size); - qemu_hexdump(buf, stderr, "", size); + fprintf(stderr, "%s receive size:%zd\n", nc->name, size); + qemu_hexdump((void *)buf, stderr, "", size); #endif /* Flush is unnecessary as are already in receiving path */ etsec->need_flush = false;