x86: use WARN() in arch/x86/mm/ioremap.c
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>
This commit is contained in:
parent
85d577979a
commit
0c072bb452
|
@ -553,13 +553,11 @@ static int __init check_early_ioremap_leak(void)
|
||||||
{
|
{
|
||||||
if (!early_ioremap_nested)
|
if (!early_ioremap_nested)
|
||||||
return 0;
|
return 0;
|
||||||
|
WARN(1, KERN_WARNING
|
||||||
printk(KERN_WARNING
|
|
||||||
"Debug warning: early ioremap leak of %d areas detected.\n",
|
"Debug warning: early ioremap leak of %d areas detected.\n",
|
||||||
early_ioremap_nested);
|
early_ioremap_nested);
|
||||||
printk(KERN_WARNING
|
printk(KERN_WARNING
|
||||||
"please boot with early_ioremap_debug and report the dmesg.\n");
|
"please boot with early_ioremap_debug and report the dmesg.\n");
|
||||||
WARN_ON(1);
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue