From patchwork Sat Sep 12 13:41:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Reimar_D=C3=B6ffinger?= X-Patchwork-Id: 33524 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 2CDE0B70B0 for ; Sat, 12 Sep 2009 23:43:53 +1000 (EST) Received: from localhost ([127.0.0.1]:43124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmStK-0002H8-6G for incoming@patchwork.ozlabs.org; Sat, 12 Sep 2009 09:43:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmSqq-0000w6-Lx for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:41:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmSql-0000tI-Pc for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:41:16 -0400 Received: from [199.232.76.173] (port=57035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmSql-0000tC-IJ for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:41:11 -0400 Received: from mail.gmx.net ([213.165.64.20]:50894) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MmSqk-0008P6-R7 for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:41:11 -0400 Received: (qmail invoked by alias); 12 Sep 2009 13:41:08 -0000 Received: from p5B134C78.dip.t-dialin.net (EHLO localhost) [91.19.76.120] by mail.gmx.net (mp028) with SMTP; 12 Sep 2009 15:41:08 +0200 X-Authenticated: #11956158 X-Provags-ID: V01U2FsdGVkX1+mlv8AY/imCgRt0zy05pprZ3u6AX0qwZWuKrUAhV 7jqKSvl2uEfP3T Date: Sat, 12 Sep 2009 15:41:04 +0200 From: Reimar =?iso-8859-1?Q?D=F6ffinger?= To: qemu-devel@nongnu.org Message-ID: <20090912134104.GA14651@1und1.de> Mail-Followup-To: qemu-devel@nongnu.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5600000000000001 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [Qemu-devel] [PATCH] Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Reimar Döffinger --- hw/eepro100.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 60426b1..f930ccd 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -524,7 +524,7 @@ static void nic_reset(void *opaque) } #if defined(DEBUG_EEPRO100) -static const char *reg[PCI_IO_SIZE / 4] = { +static const char * const reg[PCI_IO_SIZE / 4] = { "Command/Status", "General Pointer", "Port", @@ -949,14 +949,14 @@ static void eepro100_write_pointer(EEPRO100State * s, uint32_t val) ****************************************************************************/ #if defined(DEBUG_EEPRO100) -static const char *mdi_op_name[] = { +static const char * const mdi_op_name[] = { "opcode 0", "write", "read", "opcode 3" }; -static const char *mdi_reg_name[] = { +static const char * const mdi_reg_name[] = { "Control", "Status", "PHY Identification (Word 1)",