Commit 98ba2632fc2695838657a972fce69270cb79dc77
Committed by
Blue Swirl
1 parent
682aea0e
qdev: c99 initilaizers for bus_type_names
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Showing
1 changed file
with
5 additions
and
5 deletions
hw/qdev.c
... | ... | @@ -340,11 +340,11 @@ BusState *qbus_create(BusType type, size_t size, |
340 | 340 | } |
341 | 341 | |
342 | 342 | static const char *bus_type_names[] = { |
343 | - "System", | |
344 | - "PCI", | |
345 | - "SCSI", | |
346 | - "I2C", | |
347 | - "SSI" | |
343 | + [ BUS_TYPE_SYSTEM ] = "System", | |
344 | + [ BUS_TYPE_PCI ] = "PCI", | |
345 | + [ BUS_TYPE_SCSI ] = "SCSI", | |
346 | + [ BUS_TYPE_I2C ] = "I2C", | |
347 | + [ BUS_TYPE_SSI ] = "SSI", | |
348 | 348 | }; |
349 | 349 | |
350 | 350 | #define qdev_printf(fmt, ...) monitor_printf(mon, "%*s" fmt, indent, "", ## __VA_ARGS__) | ... | ... |