提交 ec169288 编写于 作者: D David Benjamin 提交者: Anthony Liguori

eepro100: Allocate a larger buffer for regname()

This should avoid truncating the register name when debugging.
Signed-off-by: NDavid Benjamin <davidben@mit.edu>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 5f370b14
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册