* [Qemu-devel] [PATCH] qdev: c99 initilaizers for bus_type_names
@ 2009-06-08 12:33 Gerd Hoffmann
2009-06-08 17:38 ` Blue Swirl
0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2009-06-08 12:33 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/qdev.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/qdev.c b/hw/qdev.c
index 5175fe1..689cf4c 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__)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-08 17:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 12:33 [Qemu-devel] [PATCH] qdev: c99 initilaizers for bus_type_names Gerd Hoffmann
2009-06-08 17:38 ` Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).