From 13736c9983ff599650b38cda38a58999b53e9bf4 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Sat, 19 Oct 1996 10:02:54 +0000 Subject: __assert added, impl from netbsd, however put elsewhere. use it instead of private versions (one even using the userland header) in if_sn.c --- sys/arch/mac68k/dev/if_sn.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'sys/arch/mac68k/dev') 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; /* -- cgit v1.2.3