diff options
author | Andreas Färber <andreas.faerber@web.de> | 2011-03-06 15:48:13 +0100 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-03-06 21:01:32 +0100 |
commit | b5f301643f6c6b859293a922f60cc045382b67e1 (patch) | |
tree | 9370b63a722c6118a50794e1441457c559920074 /ioport.c | |
parent | ac996de719556ba5749d899a320b5dab76d2e056 (diff) | |
download | qemu-b5f301643f6c6b859293a922f60cc045382b67e1.tar.gz qemu-b5f301643f6c6b859293a922f60cc045382b67e1.tar.bz2 qemu-b5f301643f6c6b859293a922f60cc045382b67e1.zip |
ioport: Improve error output
When failing due to conflicting I/O port registrations,
include the offending I/O port address in the message.
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'ioport.c')
-rw-r--r-- | ioport.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -149,7 +149,8 @@ int register_ioport_read(pio_addr_t start, int length, int size, for(i = start; i < start + length; i += size) { ioport_read_table[bsize][i] = func; if (ioport_opaque[i] != NULL && ioport_opaque[i] != opaque) - hw_error("register_ioport_read: invalid opaque"); + hw_error("register_ioport_read: invalid opaque for address 0x%x", + i); ioport_opaque[i] = opaque; } return 0; @@ -168,7 +169,8 @@ int register_ioport_write(pio_addr_t start, int length, int size, for(i = start; i < start + length; i += size) { ioport_write_table[bsize][i] = func; if (ioport_opaque[i] != NULL && ioport_opaque[i] != opaque) - hw_error("register_ioport_write: invalid opaque"); + hw_error("register_ioport_write: invalid opaque for address 0x%x", + i); ioport_opaque[i] = opaque; } return 0; |