From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDyeY-0005Gj-Es for qemu-devel@nongnu.org; Fri, 27 Nov 2009 06:06:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDyeS-0005Cg-If for qemu-devel@nongnu.org; Fri, 27 Nov 2009 06:06:16 -0500 Received: from [199.232.76.173] (port=39530 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDyeS-0005CT-CD for qemu-devel@nongnu.org; Fri, 27 Nov 2009 06:06:12 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:57871) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDyeR-0006da-MD for qemu-devel@nongnu.org; Fri, 27 Nov 2009 06:06:12 -0500 From: Stefan Weil Date: Fri, 27 Nov 2009 12:06:02 +0100 Message-Id: <1259319962-10683-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] eepro100: Improve debug messages List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers * 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 --- hw/eepro100.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 8734907..4210d8a 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -635,22 +635,22 @@ 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" }; static char *regname(uint32_t addr) { - static char buf[16]; + 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 { -- 1.5.6.5