commit | 2a8358d8a339540f00ec596526690e8eeca931a3 | [log] [tgz] |
---|---|---|
author | Kees Cook <[email protected]> | Fri Nov 17 15:27:21 2017 -0800 |
committer | Linus Torvalds <[email protected]> | Fri Nov 17 16:10:01 2017 -0800 |
tree | 9c9183da21f3016b87c889399e5c2d0973ac3a74 | |
parent | d32f11ba281b7e203932c0a65ec1fb302493cbbe [diff] [blame] |
bug: define the "cut here" string in a single place The "cut here" string is used in a few paths. Define it in a single place. 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]>
diff --git a/lib/bug.c b/lib/bug.c index f66be6b..c1b0fad 100644 --- a/lib/bug.c +++ b/lib/bug.c
@@ -186,7 +186,7 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs) return BUG_TRAP_TYPE_WARN; } - printk(KERN_DEFAULT "------------[ cut here ]------------\n"); + printk(KERN_DEFAULT CUT_HERE); if (file) pr_crit("kernel BUG at %s:%u!\n", file, line);