Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Align the kASan message style with kUBSan



details:   https://anonhg.NetBSD.org/src/rev/a20dd2ab1c74
branches:  trunk
changeset: 996928:a20dd2ab1c74
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Feb 13 14:55:29 2019 +0000

description:
Align the kASan message style with kUBSan

Print messages with initial 'ASan', simiarly to kUBSan printing 'UBSan'.

diffstat:

 sys/kern/subr_asan.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 51e663f7f018 -r a20dd2ab1c74 sys/kern/subr_asan.c
--- a/sys/kern/subr_asan.c      Wed Feb 13 11:40:41 2019 +0000
+++ b/sys/kern/subr_asan.c      Wed Feb 13 14:55:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_asan.c,v 1.2 2018/12/23 12:15:01 maxv Exp $       */
+/*     $NetBSD: subr_asan.c,v 1.3 2019/02/13 14:55:29 kamil Exp $      */
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.2 2018/12/23 12:15:01 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_asan.c,v 1.3 2019/02/13 14:55:29 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -166,7 +166,7 @@
 static void
 kasan_report(unsigned long addr, size_t size, bool write, unsigned long pc)
 {
-       printf("kASan: Unauthorized Access In %p: Addr %p [%zu byte%s, %s]\n",
+       printf("ASan: Unauthorized Access In %p: Addr %p [%zu byte%s, %s]\n",
            (void *)pc, (void *)addr, size, (size > 1 ? "s" : ""),
            (write ? "write" : "read"));
        kasan_md_unwind();



Home | Main Index | Thread Index | Old Index