Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Reimar Döffinger 2009-09-12 15:20:24 +00:00 committed by Blue Swirl
parent d8becc354b
commit 6a0b9cc91f
1 changed files with 3 additions and 3 deletions

View File

@ -515,7 +515,7 @@ static void nic_reset(void *opaque)
} }
#if defined(DEBUG_EEPRO100) #if defined(DEBUG_EEPRO100)
static const char *reg[PCI_IO_SIZE / 4] = { static const char * const reg[PCI_IO_SIZE / 4] = {
"Command/Status", "Command/Status",
"General Pointer", "General Pointer",
"Port", "Port",
@ -932,14 +932,14 @@ static void eepro100_write_pointer(EEPRO100State * s, uint32_t val)
****************************************************************************/ ****************************************************************************/
#if defined(DEBUG_EEPRO100) #if defined(DEBUG_EEPRO100)
static const char *mdi_op_name[] = { static const char * const mdi_op_name[] = {
"opcode 0", "opcode 0",
"write", "write",
"read", "read",
"opcode 3" "opcode 3"
}; };
static const char *mdi_reg_name[] = { static const char * const mdi_reg_name[] = {
"Control", "Control",
"Status", "Status",
"PHY Identification (Word 1)", "PHY Identification (Word 1)",