serial: Fix debug format strings
This fixes the build of hw/serial.c with DEBUG_SERIAL enabled. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
085d813407
commit
8b4a898841
@ -306,7 +306,7 @@ static void serial_ioport_write(void *opaque, hwaddr addr, uint64_t val,
|
||||
SerialState *s = opaque;
|
||||
|
||||
addr &= 7;
|
||||
DPRINTF("write addr=0x%02x val=0x%02x\n", addr, val);
|
||||
DPRINTF("write addr=0x%" HWADDR_PRIx " val=0x%" PRIx64 "\n", addr, val);
|
||||
switch(addr) {
|
||||
default:
|
||||
case 0:
|
||||
@ -527,7 +527,7 @@ static uint64_t serial_ioport_read(void *opaque, hwaddr addr, unsigned size)
|
||||
ret = s->scr;
|
||||
break;
|
||||
}
|
||||
DPRINTF("read addr=0x%02x val=0x%02x\n", addr, ret);
|
||||
DPRINTF("read addr=0x%" HWADDR_PRIx " val=0x%02x\n", addr, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user