diff options
| author | Kees Cook <keescook@chromium.org> | 2017-11-17 18:27:21 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 19:10:01 -0500 |
| commit | 2a8358d8a339540f00ec596526690e8eeca931a3 (patch) | |
| tree | 9c9183da21f3016b87c889399e5c2d0973ac3a74 /kernel | |
| parent | d32f11ba281b7e203932c0a65ec1fb302493cbbe (diff) | |
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/1510100869-73751-3-git-send-email-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/panic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 67cebf2a3b67..89df5fa2f798 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
| @@ -520,7 +520,7 @@ void __warn(const char *file, int line, void *caller, unsigned taint, | |||
| 520 | { | 520 | { |
| 521 | disable_trace_on_warning(); | 521 | disable_trace_on_warning(); |
| 522 | 522 | ||
| 523 | pr_warn("------------[ cut here ]------------\n"); | 523 | pr_warn(CUT_HERE); |
| 524 | 524 | ||
| 525 | if (file) | 525 | if (file) |
| 526 | pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS\n", | 526 | pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS\n", |
