提交 98ba2632 编写于 作者: G Gerd Hoffmann 提交者: Blue Swirl

qdev: c99 initilaizers for bus_type_names

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 682aea0e
......@@ -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__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册