diff options
author | David Benjamin <davidben@MIT.EDU> | 2009-11-25 21:20:10 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 15:26:01 -0600 |
commit | ec16928806f88b72b35a8bcb52054460db230027 (patch) | |
tree | 6a0d8faf89208ce9d7fe8310aa38c79a2532fc15 /hw/eepro100.c | |
parent | 5f370b14639370b1e010fac5b1fd094e502a781e (diff) |
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/eepro100.c')
-rw-r--r-- | hw/eepro100.c | 2 |
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) { |