kasan: add newline to messages
PATCH 2/20 kasan: add newline to messages
From: Dmitry Vyukov <[email protected]>
Subject: kasan: add newline to messages
Currently GPF messages with KASAN look as follows:
kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC KASAN Add newlines.
Signed-off-by Dmitry Vyukov <[email protected]>
Acked-by Andrey Ryabinin <[email protected]>
Cc Alexander Potapenko <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/x86/mm/kasan_init_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/kasan_init_64.c renamed from arch/x86/mm/kasan_init_64.c~kasan-add-newline-to-messages +2 -2
@@ -54,8 +54,8 @@ static int kasan_die_handler(struct noti void *data) {if (val ==DIE_GPF ) { -pr_emerg ("CONFIG_KASAN_INLINE enabled" ); -pr_emerg ("GPF could be caused by NULL-ptr deref or user memory access" ); +pr_emerg ("CONFIG_KASAN_INLINE enabled\n" ); +pr_emerg ("GPF could be caused by NULL-ptr deref or user memory access\n" ); }return NOTIFY_OK ; }
_