From: Cao jin Date: Wed, 6 Jan 2016 08:22:55 +0000 (+0800) Subject: virtio serial port: fix to incomplete QOMify X-Git-Tag: qemu-xen-4.8.0-rc1~585^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d9eb0be229635a8c625a0a3d29d2d88aba1508a5;p=qemu-xen.git virtio serial port: fix to incomplete QOMify Signed-off-by: Cao jin Message-Id: <1452068575-21543-1-git-send-email-caoj.fnst@cn.fujitsu.com> Reviewed-by: Amit Shah Signed-off-by: Amit Shah --- diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index 497b0afd9f..2d2a6594fc 100644 --- a/hw/char/virtio-serial-bus.c +++ b/hw/char/virtio-serial-bus.c @@ -798,7 +798,7 @@ static const TypeInfo virtser_bus_info = { static void virtser_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent) { - VirtIOSerialPort *port = DO_UPCAST(VirtIOSerialPort, dev, qdev); + VirtIOSerialPort *port = VIRTIO_SERIAL_PORT(qdev); monitor_printf(mon, "%*sport %d, guest %s, host %s, throttle %s\n", indent, "", port->id,