From: Cyrill Gorcunov Date: Sat, 21 May 2011 12:16:51 +0000 (+0400) Subject: kvm tools: Print out a warning on io-port re-registration X-Git-Tag: next-20110824~3^2~274 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c24c6a44c0c65739982e2737d5d3336257328aee;p=karo-tx-linux.git kvm tools: Print out a warning on io-port re-registration Signed-off-by: Cyrill Gorcunov Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/ioport.c b/tools/kvm/ioport.c index 7b7bc11a4edf..d1ddeeaa96db 100644 --- a/tools/kvm/ioport.c +++ b/tools/kvm/ioport.c @@ -72,8 +72,10 @@ void ioport__register(u16 port, struct ioport_operations *ops, int count) struct ioport_entry *entry; entry = ioport_search(&ioport_tree, port); - if (entry) + if (entry) { + pr_warning("ioport re-registered: %x", port); rb_int_erase(&ioport_tree, &entry->node); + } entry = malloc(sizeof(*entry)); if (entry == NULL)