diff options
author | asmodai <asmodai@FreeBSD.org> | 2001-10-24 18:12:43 +0000 |
---|---|---|
committer | asmodai <asmodai@FreeBSD.org> | 2001-10-24 18:12:43 +0000 |
commit | 728aea2684958ddc7c9804bd9e8b53d30b65262f (patch) | |
tree | 0e5272c4e04eff7055ae822c90f948a18f9eb89b /lib/libstand | |
parent | 578c2da5ee90ee6cc900482a1b488af7cad9275a (diff) | |
download | FreeBSD-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.c | 8 |
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(); } |