Skip to contentSkip to conversation

virtio serial port: fix to incomplete QOMify

PATCH Applied Cao jin 3 participants 3 messages Jan 6, 2016 – Jan 7, 2016

lore
Share & tools
lore

Cao jin

author
#0 lore raw

PATCH 1/1 virtio serial port: fix to incomplete QOMify

---
 hw/char/virtio-serial-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/char/virtio-serial-bus.c +1 -1
index 497b0af..2d2a659 100644
@@ -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,
Signature · 1 line
2.1.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · On Wed, 6 Jan 2016 16:22:55 +0800 Cao jin <[email protected]> wrote:

---

Quoted 16 lines
 hw/char/virtio-serial-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/char/virtio-serial-bus.c +1 -1
index 497b0af..2d2a659 100644
@@ -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,
Reviewed-by on v1 1/1 Applied
#2 lore raw
In reply to Cao jin
Quoted 10 lines · Cao jin
---
 hw/char/virtio-serial-bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/char/virtio-serial-bus.c +0 -0
index 497b0af..2d2a659 100644

hw/char/virtio-serial-bus.c static const TypeInfo virtser_bus_info = { · line 804

Quoted 8 lines
hw/char/virtio-serial-bus.c +1 -1
@@ -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,

Applied to my tree, thanks.

Amit