summary refs log tree commit diff stats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-06-08 14:33:57 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-06-08 20:36:54 +0300
commit98ba2632fc2695838657a972fce69270cb79dc77 (patch)
tree636565ee9a4443ea39e7f41e40fd6b2ce70b0ccd /hw/qdev.c
parent682aea0eaa11925518ea1a826a32a7359304c56f (diff)
downloadfocaccia-qemu-98ba2632fc2695838657a972fce69270cb79dc77.tar.gz
focaccia-qemu-98ba2632fc2695838657a972fce69270cb79dc77.zip
qdev: c99 initilaizers for bus_type_names
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index 5175fe17fd..689cf4cf93 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__)