From: Reimar Döffinger Date: Sat, 12 Sep 2009 15:20:24 +0000 (+0000) Subject: Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled... X-Git-Tag: TizenStudio_2.0_p2.3~7490 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51b9ad4f844cc3e2b4c96740ba6bb6afc90d36c2;p=sdk%2Femulator%2Fqemu.git Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const. Signed-off-by: Reimar Döffinger Signed-off-by: Blue Swirl --- diff --git a/hw/eepro100.c b/hw/eepro100.c index e28fd5b..d3b7c3d 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -515,7 +515,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", @@ -932,14 +932,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)",