virtio serial port: fix to incomplete QOMify
PATCH 1/1 virtio serial port: fix to incomplete QOMify
Signed-off-by Cao jin <[email protected]>
--- hw/char/virtio-serial-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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,
Signature · 1 line
2.1.0
Quoted 2 lines · On Wed, 6 Jan 2016 16:22:55 +0800 Cao jin <[email protected]> wrote:
Signed-off-by Cao jin <[email protected]>---
Reviewed-by Greg Kurz <[email protected]>
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@@ -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,
Quoted 10 lines · Cao jin
Signed-off-by Cao jin <[email protected]>--- hw/char/virtio-serial-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/char/virtio-serial-bus.c +0
-0
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,
Reviewed-by Amit Shah <[email protected]>
Applied to my tree, thanks.
Amit