diff options
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 |