aboutsummaryrefslogtreecommitdiff
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-11-27 12:06:02 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 15:26:01 -0600
commitb8f6ba0d0ced574c0685ee6f1b00ac3e750b0b0e (patch)
tree065ef616af7f3654ab1528036367f0ed32766cba /hw/eepro100.c
parent9ea37780a4f3209e92c7568b97671f337fe000cd (diff)
eepro100: Improve debug messages
* buf was too small for longer register names. * Use consistent upper case for nouns in register names. * Use better name for array with e100 register names. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 52cf9028be..2a9e3b5ae4 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -635,14 +635,14 @@ static void nic_reset(void *opaque)
}
#if defined(DEBUG_EEPRO100)
-static const char * const reg[PCI_IO_SIZE / 4] = {
+static const char * const e100_reg[PCI_IO_SIZE / 4] = {
"Command/Status",
"General Pointer",
"Port",
"EEPROM/Flash Control",
"MDI Control",
"Receive DMA Byte Count",
- "Flow control",
+ "Flow Control",
"General Status/Control"
};
@@ -650,7 +650,7 @@ static char *regname(uint32_t addr)
{
static char buf[32];
if (addr < PCI_IO_SIZE) {
- const char *r = reg[addr / 4];
+ const char *r = e100_reg[addr / 4];
if (r != 0) {
snprintf(buf, sizeof(buf), "%s+%u", r, addr % 4);
} else {