mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
* elfcomm.c (error): Flush stdout before emitting the error
message. (warn): Likewise.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user