mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
5f370b1463
commit
ec16928806
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue