diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2010-03-30 19:07:41 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2010-03-30 19:07:41 +0000 |
| commit | e95be33a5ef04eba04a3a4478e79be4f77dc485e (patch) | |
| tree | fb90396bf2495e80a99252ac20664c1beb8972a3 /lib/libstand | |
| parent | 7e3d78ae6dc7f21f62d0a343ac0d6bc74af6cbe3 (diff) | |
Notes
Diffstat (limited to 'lib/libstand')
| -rw-r--r-- | lib/libstand/assert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libstand/assert.c b/lib/libstand/assert.c index b42435824ae8..8eec63a4729a 100644 --- a/lib/libstand/assert.c +++ b/lib/libstand/assert.c @@ -35,10 +35,10 @@ void __assert(const char *func, const char *file, int line, const char *expression) { if (func == NULL) - printf("Assertion failed: (%s), file %s, line %d.\n", + panic("Assertion failed: (%s), file %s, line %d.\n", expression, file, line); else - printf("Assertion failed: (%s), function %s, file %s, line " - "%d.\n", expression, func, file, line); - exit(); + panic( + "Assertion failed: (%s), function %s, file %s, line %d.\n", + expression, func, file, line); } |
