aboutsummaryrefslogtreecommitdiff
path: root/hw/char/xen_console.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/char/xen_console.c')
-rw-r--r--hw/char/xen_console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c
index 5e68326..bdfaa40 100644
--- a/hw/char/xen_console.c
+++ b/hw/char/xen_console.c
@@ -201,7 +201,7 @@ static int con_init(struct XenDevice *xendev)
/* no Xen override, use qemu output device */
if (output == NULL) {
if (con->xendev.dev) {
- qemu_chr_fe_init(&con->chr, serial_hds[con->xendev.dev],
+ qemu_chr_fe_init(&con->chr, serial_hd(con->xendev.dev),
&error_abort);
}
} else {