summaryrefslogtreecommitdiffstats
path: root/lib/libstand
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2001-10-24 18:12:43 +0000
committerasmodai <asmodai@FreeBSD.org>2001-10-24 18:12:43 +0000
commit728aea2684958ddc7c9804bd9e8b53d30b65262f (patch)
tree0e5272c4e04eff7055ae822c90f948a18f9eb89b /lib/libstand
parent578c2da5ee90ee6cc900482a1b488af7cad9275a (diff)
downloadFreeBSD-src-728aea2684958ddc7c9804bd9e8b53d30b65262f.zip
FreeBSD-src-728aea2684958ddc7c9804bd9e8b53d30b65262f.tar.gz
Add __FBSDID.
Change __assert() function to print failing function name. This makes us C99 conforming.
Diffstat (limited to 'lib/libstand')
-rw-r--r--lib/libstand/assert.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libstand/assert.c b/lib/libstand/assert.c
index 9edba3c..9317dcf 100644
--- a/lib/libstand/assert.c
+++ b/lib/libstand/assert.c
@@ -32,8 +32,10 @@ __FBSDID("$FreeBSD$");
#include "stand.h"
void
-__assert(const char *file, int line, const char *expression)
+__assert(const char *function, const char *file, int line,
+ const char *expression)
{
- printf("assertion \"%s\" failed: file \"%s\", line %d\n", expression, file, line);
- exit();
+ printf("assertion (%s) failed: function %s(), file %s:%d\n",
+ expression, function, file, line);
+ exit();
}
OpenPOWER on IntegriCloud