Skip to content

Commit

Permalink
x86: cpa self-test, WARN_ON()
Browse files Browse the repository at this point in the history
add a WARN_ON() to the cpa-self-test failure branch.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 12d6f21 commit 55ce29b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/x86/mm/pageattr-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ static __init int exercise_pageattr(void)

failed += print_split(&sc);

if (failed)
if (failed) {
printk(KERN_ERR "CPA selftests NOT PASSED. Please report.\n");
else
WARN_ON(1);
} else {
printk(KERN_INFO "CPA selftests PASSED\n");
}

return 0;
}
Expand Down

0 comments on commit 55ce29b

Please sign in to comment.