summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-19 10:02:54 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-19 10:02:54 +0000
commit13736c9983ff599650b38cda38a58999b53e9bf4 (patch)
treef3c156dde75bd26fd932e566a8b52aa7728e8ea5 /sys/arch/mac68k/dev
parent37b6f04da92d0a9514e8cf8cb7e6496be490d9a3 (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/arch/mac68k/dev')
-rw-r--r--sys/arch/mac68k/dev/if_sn.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/sys/arch/mac68k/dev/if_sn.c b/sys/arch/mac68k/dev/if_sn.c
index bdd88d64351..51c7b5f9507 100644
--- a/sys/arch/mac68k/dev/if_sn.c
+++ b/sys/arch/mac68k/dev/if_sn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sn.c,v 1.6 1996/09/21 03:34:55 briggs Exp $ */
+/* $OpenBSD: if_sn.c,v 1.7 1996/10/19 10:02:53 niklas Exp $ */
/*
* National Semiconductor SONIC Driver
@@ -140,22 +140,12 @@ struct cfdriver sn_cd = {
#else
#define _assert(e) assert(e)
#ifdef __STDC__
-#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
+#define assert(e) ((e) ? (void)0 : __assert("sn ", __FILE__, __LINE__, #e))
#else /* PCC */
-#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
+#define assert(e) ((e) ? (void)0 : __assert("sn "__FILE__, __LINE__, "e"))
#endif
#endif
-void
-__assert(file, line, failedexpr)
- const char *file, *failedexpr;
- int line;
-{
- (void)printf(
- "assertion \"%s\" failed: file \"%s\", line %d\n",
- failedexpr, file, line);
-}
-
int ethdebug = 0;
/*