diff options
author | Peter Xu <peterx@redhat.com> | 2017-02-03 15:18:17 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-16 14:06:55 +0100 |
commit | 8d5516be1224468b5dbc141fbc7644bbd3a96183 (patch) | |
tree | 0b2c978a0bc6df45e7eba6dfc149c62ba506c86e /hw | |
parent | c6fcb0e201ad296a9c0f587486830d9508094efb (diff) | |
download | qemu-8d5516be1224468b5dbc141fbc7644bbd3a96183.zip qemu-8d5516be1224468b5dbc141fbc7644bbd3a96183.tar.gz qemu-8d5516be1224468b5dbc141fbc7644bbd3a96183.tar.bz2 |
ioapic: fix error report value of def version
It should be 0x20, rather than 0x11.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1486106298-3699-3-git-send-email-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/intc/ioapic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index 9047b89..37c4386 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -408,13 +408,15 @@ static void ioapic_machine_done_notify(Notifier *notifier, void *data) #endif } +#define IOAPIC_VER_DEF 0x20 + static void ioapic_realize(DeviceState *dev, Error **errp) { IOAPICCommonState *s = IOAPIC_COMMON(dev); if (s->version != 0x11 && s->version != 0x20) { error_report("IOAPIC only supports version 0x11 or 0x20 " - "(default: 0x11)."); + "(default: 0x%x).", IOAPIC_VER_DEF); exit(1); } @@ -429,7 +431,7 @@ static void ioapic_realize(DeviceState *dev, Error **errp) } static Property ioapic_properties[] = { - DEFINE_PROP_UINT8("version", IOAPICCommonState, version, 0x20), + DEFINE_PROP_UINT8("version", IOAPICCommonState, version, IOAPIC_VER_DEF), DEFINE_PROP_END_OF_LIST(), }; |