]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/fsl_etsec/etsec.c
Remove qemu-common.h include from most units
[mirror_qemu.git] / hw / net / fsl_etsec / etsec.c
index 7035cf4eb97f7306759f77ea320c7dd2bbab5e60..6d50c395439a9592c660dd89458e063a3344e385 100644 (file)
@@ -357,7 +357,7 @@ static ssize_t etsec_receive(NetClientState *nc,
 
 #if defined(HEX_DUMP)
     fprintf(stderr, "%s receive size:%zd\n", nc->name, size);
-    qemu_hexdump((void *)buf, stderr, "", size);
+    qemu_hexdump(stderr, "", buf, size);
 #endif
     /* Flush is unnecessary as are already in receiving path */
     etsec->need_flush = false;
@@ -429,8 +429,8 @@ static void etsec_class_init(ObjectClass *klass, void *data)
     dc->user_creatable = true;
 }
 
-static TypeInfo etsec_info = {
-    .name                  = "eTSEC",
+static const TypeInfo etsec_info = {
+    .name                  = TYPE_ETSEC_COMMON,
     .parent                = TYPE_SYS_BUS_DEVICE,
     .instance_size         = sizeof(eTSEC),
     .class_init            = etsec_class_init,