x86: use WARN() in arch/x86/mm/ioremap.c
authorArjan van de Ven <arjan@linux.intel.com>
Tue, 8 Jul 2008 16:50:22 +0000 (09:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 07:59:27 +0000 (09:59 +0200)
Use WARN() instead of a printk+WARN_ON() pair; this way the message
becomes part of the warning section for better reporting/collection.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: akpm@linux-foundation.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c

index 6ba6f889c79da6f7c0370df17ef529cf5dd16a93..d4b6e6a29ae3597c45071805f734a502a12d6ab2 100644 (file)
@@ -553,13 +553,11 @@ static int __init check_early_ioremap_leak(void)
 {
        if (!early_ioremap_nested)
                return 0;
-
-       printk(KERN_WARNING
+       WARN(1, KERN_WARNING
               "Debug warning: early ioremap leak of %d areas detected.\n",
-              early_ioremap_nested);
+               early_ioremap_nested);
        printk(KERN_WARNING
-              "please boot with early_ioremap_debug and report the dmesg.\n");
-       WARN_ON(1);
+               "please boot with early_ioremap_debug and report the dmesg.\n");
 
        return 1;
 }