diff options
author | mike <mike@FreeBSD.org> | 2001-10-29 07:07:25 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-10-29 07:07:25 +0000 |
commit | c435f30d7133a8301fc05fe58504ad4f54baa185 (patch) | |
tree | b9a4f881bc62355d2cb3ef879046b6e0fd96687c /lib/libc/gen/assert.c | |
parent | a98296919f1d2abe90a4674a13419cf68553866a (diff) | |
download | FreeBSD-src-c435f30d7133a8301fc05fe58504ad4f54baa185.zip FreeBSD-src-c435f30d7133a8301fc05fe58504ad4f54baa185.tar.gz |
Make the output from assert() look more like the example in the C99
standard.
Requested by: bde
Diffstat (limited to 'lib/libc/gen/assert.c')
-rw-r--r-- | lib/libc/gen/assert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/assert.c b/lib/libc/gen/assert.c index 7cd4d0c..6a293d7 100644 --- a/lib/libc/gen/assert.c +++ b/lib/libc/gen/assert.c @@ -52,11 +52,11 @@ __assert(func, file, line, failedexpr) { if (func == NULL) (void)fprintf(stderr, - "assertion (%s) failed: file %s:%d\n", failedexpr, + "Assertion failed: (%s), file %s, line %d.\n", failedexpr, file, line); else (void)fprintf(stderr, - "assertion (%s) failed: function %s(), file %s:%d\n", + "Assertion failed: (%s), function %s, file %s, line %d.\n", failedexpr, func, file, line); abort(); /* NOTREACHED */ |