From cd8e60cead61e56e310e2c14f31052f7649ea533 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 12 Aug 2006 17:58:16 +0000 Subject: [BZ #2997] 2006-08-12 Ulrich Drepper [BZ #2997] * misc/error.c: Add space between program name and message if file name is missing. --- misc/error.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'misc/error.c') diff --git a/misc/error.c b/misc/error.c index 459110c..aca435d 100644 --- a/misc/error.c +++ b/misc/error.c @@ -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); -- cgit v1.1