mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
lkdtm: include WARN format string
In order to test the ordering of WARN format strings, actually include one in LKDTM. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Fengguang Wu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d15809f364
commit
d32f11ba28
1 changed files with 3 additions and 1 deletions
|
|
@ -63,9 +63,11 @@ void lkdtm_BUG(void)
|
|||
BUG();
|
||||
}
|
||||
|
||||
static int warn_counter;
|
||||
|
||||
void lkdtm_WARNING(void)
|
||||
{
|
||||
WARN_ON(1);
|
||||
WARN(1, "Warning message trigger count: %d\n", warn_counter++);
|
||||
}
|
||||
|
||||
void lkdtm_EXCEPTION(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue