summaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-22 02:29:56 +0000
committerRoland McGrath <roland@gnu.org>1994-05-22 02:29:56 +0000
commit94b65729587179983ac378530cd6e0cca808cf76 (patch)
treed42bdd3444e2fa728caac82c5f843ea700848139 /assert
parent92b7047865c270d2dd49a8fa74b38275076b0676 (diff)
entered into RCS
Diffstat (limited to 'assert')
-rw-r--r--assert/assert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/assert/assert.c b/assert/assert.c
index 0490fad8e4..c345633d54 100644
--- a/assert/assert.c
+++ b/assert/assert.c
@@ -41,10 +41,10 @@ DEFUN(__assert_fail, (assertion, file, line, function),
#endif
/* Print the message. */
- (void) fprintf (stderr, "%s:%u: %s%s%s%sAssertion `%s' failed.\n",
- file, line,
+ (void) fprintf (stderr, "%s%s%s:%u: %s%sAssertion `%s' failed.\n",
__assert_program_name ? __assert_program_name : "",
__assert_program_name ? ": " : "",
+ file, line,
function ? function : "", function ? ": " : "",
assertion);
(void) fflush (stderr);