eepro100: Allocate a larger buffer for regname()
PATCH 1/1 eepro100: Allocate a larger buffer for regname()
This should avoid truncating the register name when debugging.
Signed-off-by David Benjamin <[email protected]>
--- hw/eepro100.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/eepro100.c +1 -1
@@ -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 ) {
Signature · 1 line
1.6.3.3
Quoted 12 lines · David Benjamin
This should avoid truncating the register name when debugging.
Signed-off-by David Benjamin <[email protected]>---
hw/eepro100.c| 2 +-1 files changed, 1 insertions(+), 1 deletions(-)hw/eepro100.c +0
-0
hw/eepro100.c static const char * const reg[PCI_IO_SIZE / 4] = { · line 654
Quoted 8 lines
hw/eepro100.c +1
-1@@ -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 ) {
This was already fixed in the latest version of eepro100.c
(git://repo.or.cz/qemu/ar7.git).
In "official" QEMU on savannah, it is still missing (as several other patches, too).
It takes more than a week to get a patch integrated...
Regards,
Stefan