diff options
author | Nick Clifton <nickc@redhat.com> | 2013-03-04 14:22:25 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-03-04 14:22:25 +0000 |
commit | fafd911d9f34471ac85b29643bd47448b9ea238f (patch) | |
tree | 39f7c8ecc7a892e5f136507db8717059a62f39d1 /binutils/elfcomm.c | |
parent | e83b17baa42121e7bf76f83ce9b895c51c711108 (diff) | |
download | gdb-fafd911d9f34471ac85b29643bd47448b9ea238f.zip gdb-fafd911d9f34471ac85b29643bd47448b9ea238f.tar.gz gdb-fafd911d9f34471ac85b29643bd47448b9ea238f.tar.bz2 |
* elfcomm.c (error): Flush stdout before emitting the error
message.
(warn): Likewise.
Diffstat (limited to 'binutils/elfcomm.c')
-rw-r--r-- | binutils/elfcomm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/elfcomm.c b/binutils/elfcomm.c index 1179a1a..1a1fae9 100644 --- a/binutils/elfcomm.c +++ b/binutils/elfcomm.c @@ -35,6 +35,9 @@ error (const char *message, ...) { va_list args; + /* Try to keep error messages in sync with the program's normal output. */ + fflush (stdout); + va_start (args, message); fprintf (stderr, _("%s: Error: "), program_name); vfprintf (stderr, message, args); @@ -46,6 +49,9 @@ warn (const char *message, ...) { va_list args; + /* Try to keep warning messages in sync with the program's normal output. */ + fflush (stdout); + va_start (args, message); fprintf (stderr, _("%s: Warning: "), program_name); vfprintf (stderr, message, args); |