OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682aea0
)
qdev: c99 initilaizers for bus_type_names
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 8 Jun 2009 12:33:57 +0000
(14:33 +0200)
committer
Blue Swirl
<blauwirbel@gmail.com>
Mon, 8 Jun 2009 17:36:54 +0000
(20:36 +0300)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qdev.c
patch
|
blob
|
history
diff --git
a/hw/qdev.c
b/hw/qdev.c
index
5175fe1
..
689cf4c
100644
(file)
--- 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__)