]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #2997]
authorUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2006 17:58:16 +0000 (17:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 12 Aug 2006 17:58:16 +0000 (17:58 +0000)
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.

ChangeLog
misc/error.c

index 68faa1911f56656486a6e01ad47bae1f4fc48470..12e8d9515da40122a4d38f49526d90ea595ef0df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 459110cf9656f5b540482415886bbb25537b891e..aca435d99590a257f9cc01309afef78a32e7cdd5 100644 (file)
@@ -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);