summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorDavid Benjamin2009-11-26 03:20:10 +0100
committerAnthony Liguori2009-12-03 22:26:01 +0100
commitec16928806f88b72b35a8bcb52054460db230027 (patch)
tree6a0d8faf89208ce9d7fe8310aa38c79a2532fc15 /hw
parentmultiboot: Use signed type for negative error numbers (diff)
downloadqemu-ec16928806f88b72b35a8bcb52054460db230027.tar.gz
qemu-ec16928806f88b72b35a8bcb52054460db230027.tar.xz
qemu-ec16928806f88b72b35a8bcb52054460db230027.zip
eepro100: Allocate a larger buffer for regname()
This should avoid truncating the register name when debugging. Signed-off-by: David Benjamin <davidben@mit.edu> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/eepro100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index eb16a51a49..52cf9028be 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -648,7 +648,7 @@ static const char * const reg[PCI_IO_SIZE / 4] = {
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];
if (r != 0) {