Skip to content

Commit

Permalink
[BZ #2997]
Browse files Browse the repository at this point in the history
2006-08-12  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2997]
	* misc/error.c: Add space between program name and message if file
	name is missing.
  • Loading branch information
Ulrich Drepper committed Aug 12, 2006
1 parent 9a52888 commit cd8e60c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2006-08-12 Ulrich Drepper <drepper@redhat.com>

[BZ #2997]
* misc/error.c: Add space between program name and message if file
name is missing.

2006-08-03 Eric Blake <ebb9@byu.net>

[BZ #2998]
Expand Down
9 changes: 4 additions & 5 deletions misc/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,13 @@ error_at_line (status, errnum, file_name, line_number, message, va_alist)
#endif
}

if (file_name != NULL)
{
#if _LIBC
__fxprintf (NULL, "%s:%d: ", file_name, line_number);
__fxprintf (NULL, file_name != NULL ? "%s:%d: " : " ",
file_name, line_number);
#else
fprintf (stderr, "%s:%d: ", file_name, line_number);
fprintf (stderr, file_name != NULL ? "%s:%d: " : " ",
file_name, line_number);
#endif
}

#ifdef VA_START
VA_START (args, message);
Expand Down

0 comments on commit cd8e60c

Please sign in to comment.