Skip to contentSkip to conversation

kasan: add newline to messages

PATCH New [email protected] 1 participant 1 message Jul 14, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---

 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
diff -puN arch/x86/mm/kasan_init_64.c~kasan-add-newline-to-messages arch/x86/mm/kasan_init_64.c
@@ -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;
 }

_