Source-Changes-HG archive

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

[src/netbsd-9]: src/external/cddl/osnet/sys/kern Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/a7c59c87a200
branches:  netbsd-9
changeset: 1002325:a7c59c87a200
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 06 04:15:26 2021 +0000

description:
Pull up following revision(s) (requested by riastradh in ticket #1315):

        external/cddl/osnet/sys/kern/printf.c: revision 1.3

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 1ebfd0e91a1d -r a7c59c87a200 external/cddl/osnet/sys/kern/printf.c
--- a/external/cddl/osnet/sys/kern/printf.c     Tue Jul 06 04:13:50 2021 +0000
+++ b/external/cddl/osnet/sys/kern/printf.c     Tue Jul 06 04:15:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: printf.c,v 1.2 2018/05/28 21:05:09 chs Exp $   */
+/*     $NetBSD: printf.c,v 1.2.4.1 2021/07/06 04:15:26 martin 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