From: Gerd Hoffmann Date: Mon, 8 Jun 2009 12:33:57 +0000 (+0200) Subject: qdev: c99 initilaizers for bus_type_names X-Git-Tag: v0.11.0-rc0~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ba2632fc2695838657a972fce69270cb79dc77;p=thirdparty%2Fqemu.git qdev: c99 initilaizers for bus_type_names Signed-off-by: Gerd Hoffmann --- diff --git a/hw/qdev.c b/hw/qdev.c index 5175fe17fd6..689cf4cf930 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -340,11 +340,11 @@ BusState *qbus_create(BusType type, size_t size, } static const char *bus_type_names[] = { - "System", - "PCI", - "SCSI", - "I2C", - "SSI" + [ BUS_TYPE_SYSTEM ] = "System", + [ BUS_TYPE_PCI ] = "PCI", + [ BUS_TYPE_SCSI ] = "SCSI", + [ BUS_TYPE_I2C ] = "I2C", + [ BUS_TYPE_SSI ] = "SSI", }; #define qdev_printf(fmt, ...) monitor_printf(mon, "%*s" fmt, indent, "", ## __VA_ARGS__)