diff options
| author | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-10-24 18:12:43 +0000 |
|---|---|---|
| committer | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2001-10-24 18:12:43 +0000 |
| commit | d4c54c0c469704992bfa38583cedb8f364bfd62b (patch) | |
| tree | 0e5272c4e04eff7055ae822c90f948a18f9eb89b | |
| parent | 6cefb54a32297dc02286e02a646ec3da1d902ecd (diff) | |
Notes
| -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 9edba3c5ffa4..9317dcf2be90 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(); } |
