]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Print out a warning on io-port re-registration
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 21 May 2011 12:16:51 +0000 (16:16 +0400)
committerPekka Enberg <penberg@kernel.org>
Sun, 22 May 2011 07:53:24 +0000 (10:53 +0300)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/ioport.c

index 7b7bc11a4edf54b685d4af183b9907c266a03cdf..d1ddeeaa96db29917ea7504d4d5814c268b78d6a 100644 (file)
@@ -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)