diff options
author | liguang <lig.fnst@cn.fujitsu.com> | 2013-05-24 10:47:32 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2013-06-01 14:25:38 +0400 |
commit | e6ee28469fc41af5cc7d5b470ec9a1a078177fa7 (patch) | |
tree | 801abf87f2b1ab1728820297e46dbcaee518d032 /hw/char/debugcon.c | |
parent | 8c1f72da6b11051c48a642f7de7048956383e217 (diff) |
debugcon: make debug message more readable
before change:
Bdebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x6f
odebugcon: write addr=0x0000 val=0x74
tdebugcon: write addr=0x0000 val=0x69
idebugcon: write addr=0x0000 val=0x6e
ndebugcon: write addr=0x0000 val=0x67
gdebugcon: write addr=0x0000 val=0x20
debugcon: write addr=0x0000 val=0x66
after change:
B [debugcon: write addr=0x0000 val=0x6f]
o [debugcon: write addr=0x0000 val=0x6f]
o [debugcon: write addr=0x0000 val=0x74]
t [debugcon: write addr=0x0000 val=0x69]
i [debugcon: write addr=0x0000 val=0x6e]
n [debugcon: write addr=0x0000 val=0x67]
g [debugcon: write addr=0x0000 val=0x20]
[debugcon: write addr=0x0000 val=0x66]
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/char/debugcon.c')
-rw-r--r-- | hw/char/debugcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index 7e41c90441..52fa0ab10f 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -55,7 +55,7 @@ static void debugcon_ioport_write(void *opaque, hwaddr addr, uint64_t val, unsigned char ch = val; #ifdef DEBUG_DEBUGCON - printf("debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02x\n", addr, val); + printf(" [debugcon: write addr=0x%04" HWADDR_PRIx " val=0x%02x]\n", addr, val); #endif qemu_chr_fe_write(s->chr, &ch, 1); |