debugcon: fix compiler warning when open DEBUG_DEBUGCON
authorliguang <lig.fnst@cn.fujitsu.com>
Fri, 24 May 2013 02:47:33 +0000 (10:47 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 1 Jun 2013 10:25:38 +0000 (14:25 +0400)
commit668fca91d48a7d55a0e3911447b078679f2ce986
tree2f582c90f4163d688093409c663f5af3ae98eb3b
parente6ee28469fc41af5cc7d5b470ec9a1a078177fa7
debugcon: fix compiler warning when open DEBUG_DEBUGCON

compiler warnings:
  CC    hw/char/debugcon.o
hw/char/debugcon.c: In function ‘debugcon_ioport_write’:
hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’
hw/char/debugcon.c: In function ‘debugcon_ioport_read’:
hw/char/debugcon.c:70: warning: format ‘%04x’ expects type ‘unsigned int’, but argument 2 has type ‘hwaddr’

Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/char/debugcon.c