diff options
author | 1996-10-19 10:02:45 +0000 | |
---|---|---|
committer | 1996-10-19 10:02:45 +0000 | |
commit | a5bc1d193267b7310e15e8fd1b378efe575ad235 (patch) | |
tree | 071b35d93840d12017ad3de6bab8ebb58786e330 /sys/kern/subr_prf.c | |
parent | tip makes crunch go insane (diff) | |
download | wireguard-openbsd-a5bc1d193267b7310e15e8fd1b378efe575ad235.tar.xz wireguard-openbsd-a5bc1d193267b7310e15e8fd1b378efe575ad235.zip |
__assert added, impl from netbsd, however put elsewhere. use it instead
of private versions (one even using the userland header) in if_sn.c
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index c38fad6e73f..70ef3d1b944 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.10 1996/07/28 01:05:48 deraadt Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.11 1996/10/19 10:02:49 niklas Exp $ */ /* $NetBSD: subr_prf.c,v 1.25 1996/04/22 01:38:46 christos Exp $ */ /*- @@ -135,6 +135,20 @@ panic(fmt, va_alist) } /* + * Partial support (the failure case) of the assertion facility + * commonly found in userland. + */ +void +__assert(t, f, l, e) + const char *t, *f, *e; + int l; +{ + + panic("kernel %sassertion \"%s\" failed: file \"%s\", line %d\n", + t, e, f, l); +} + +/* * Warn that a system table is full. */ void |