qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] virtio serial port: fix to incomplete QOMify
@ 2016-01-06  8:22 Cao jin
  2016-01-06  8:33 ` Greg Kurz
  2016-01-07  9:57 ` Amit Shah
  0 siblings, 2 replies; 3+ messages in thread
From: Cao jin @ 2016-01-06  8:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: amit.shah, pbonzini, qemu-trivial, mst

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 hw/char/virtio-serial-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
index 497b0af..2d2a659 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,
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-07  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-06  8:22 [Qemu-devel] [PATCH] virtio serial port: fix to incomplete QOMify Cao jin
2016-01-06  8:33 ` Greg Kurz
2016-01-07  9:57 ` Amit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).