diff --git a/lib/libc/gen/assert.c b/lib/libc/gen/assert.c index 7cd4d0c95b76..6a293d72253d 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 */ diff --git a/lib/libstand/assert.c b/lib/libstand/assert.c index 6d0ab89fa18f..b42435824ae8 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 (%s) failed: file %s:%d\n", expression, - file, line); + printf("Assertion failed: (%s), file %s, line %d.\n", + expression, file, line); else - printf("assertion (%s) failed: function %s(), file %s:%d\n", - expression, func, file, line); + printf("Assertion failed: (%s), function %s, file %s, line " + "%d.\n", expression, func, file, line); exit(); }