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/3b42be93cc78
branches: trunk
changeset: 1007895:3b42be93cc78
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 df6f708eb630 -r 3b42be93cc78 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