diff options
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(); } |