diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-11-28 10:13:15 -0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-12-06 10:23:50 +0800 |
commit | 9f5832d34b0c155e9538a745c80e441aed257670 (patch) | |
tree | 5374cc4673b2ca8259561e394b38718a3a480fad /hw | |
parent | 64f441d2e53ac6ed8b4ef199e1995529d2012000 (diff) | |
download | qemu-9f5832d34b0c155e9538a745c80e441aed257670.zip qemu-9f5832d34b0c155e9538a745c80e441aed257670.tar.gz qemu-9f5832d34b0c155e9538a745c80e441aed257670.tar.bz2 |
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 <andrew.smirnov@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/net/fsl_etsec/etsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c index 951c5f0..fadf9c8 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; |