From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDe3C-0007mV-FN for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:34:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDe37-0007kk-PK for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:34:06 -0400 Received: from [199.232.76.173] (port=58058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDe37-0007kb-Kq for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:34:01 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35452) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDe37-0002fY-6g for qemu-devel@nongnu.org; Mon, 08 Jun 2009 08:34:01 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n58CY00q032376 for ; Mon, 8 Jun 2009 08:34:00 -0400 From: Gerd Hoffmann Date: Mon, 8 Jun 2009 14:33:57 +0200 Message-Id: <1244464437-3844-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] qdev: c99 initilaizers for bus_type_names List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- 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