Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/sys/kern Use vpanic, not vprintf and the...



details:   https://anonhg.NetBSD.org/src/rev/24ba7be4bfa7
branches:  trunk
changeset: 969860:24ba7be4bfa7
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Mar 03 06:44:38 2020 +0000

description:
Use vpanic, not vprintf and then panic.

diffstat:

 external/cddl/osnet/sys/kern/printf.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 38bd9fa67501 -r 24ba7be4bfa7 external/cddl/osnet/sys/kern/printf.c
--- a/external/cddl/osnet/sys/kern/printf.c     Tue Mar 03 05:41:36 2020 +0000
+++ b/external/cddl/osnet/sys/kern/printf.c     Tue Mar 03 06:44:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printf.c,v 1.2 2018/05/28 21:05:09 chs Exp $   */
+/*     $NetBSD: printf.c,v 1.3 2020/03/03 06:44:38 riastradh Exp $     */
 
 /*
  * CDDL HEADER START
@@ -41,10 +41,8 @@
        char buf[256];
        size_t len;
 
-       if (ce == CE_PANIC) {
-               vprintf(fmt, adx);
-               panic("panic");
-       }
+       if (ce == CE_PANIC)
+               vpanic(fmt, adx);
 
        if ((uint_t)ce < CE_IGNORE) {
                strcpy(buf, ce_prefix[ce]);



Home | Main Index | Thread Index | Old Index