Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.
PATCH 1/1 Make string arrays used to convert numbers to strings when DEBUG_EEPRO100 is enabled const.
Signed-off-by Reimar Döffinger <[email protected]>
--- hw/eepro100.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
hw/eepro100.c +3 -3
@@ -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)",
Signature · 1 line
1.6.4.2