diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-19 10:02:54 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-10-19 10:02:54 +0000 |
commit | 13736c9983ff599650b38cda38a58999b53e9bf4 (patch) | |
tree | f3c156dde75bd26fd932e566a8b52aa7728e8ea5 /sys/kern/subr_prf.c | |
parent | 37b6f04da92d0a9514e8cf8cb7e6496be490d9a3 (diff) |
__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 |