aboutsummaryrefslogtreecommitdiff
path: root/gas/messages.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1992-08-21 19:21:52 +0000
committerKen Raeburn <raeburn@cygnus>1992-08-21 19:21:52 +0000
commit4772861e5b05176b400dba7a93256a2e22416a12 (patch)
treed7843064e02ef765a83e1d174751c11670ed1b8a /gas/messages.c
parent571c4c2636e85debfae66d50636f02d740d3f4cc (diff)
downloadgdb-4772861e5b05176b400dba7a93256a2e22416a12.zip
gdb-4772861e5b05176b400dba7a93256a2e22416a12.tar.gz
gdb-4772861e5b05176b400dba7a93256a2e22416a12.tar.bz2
From p3:
* messages.c (as_warn): Use fputs, not fprintf, with a buffer that has already been formatted (but may still contain %-characters). (as_bad): Likewise.
Diffstat (limited to 'gas/messages.c')
-rw-r--r--gas/messages.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/messages.c b/gas/messages.c
index b48df098..d5c9231 100644
--- a/gas/messages.c
+++ b/gas/messages.c
@@ -195,7 +195,7 @@ void as_warn(const char *Format, ...)
va_start(args, Format);
fprintf(stderr,"Warning: ");
vsprintf(buffer, Format, args);
- fprintf(stderr, buffer);
+ fputs (buffer, stderr);
#ifndef NO_LISTING
listing_warning(buffer);
#endif
@@ -218,7 +218,7 @@ va_dcl
va_start(args);
fprintf(stderr,"Warning: ");
vsprintf(buffer, Format, args);
- fprintf(stderr,buffer);
+ fputs (buffer, stderr);
#ifndef NO_LISTING
listing_warning(buffer);
#endif
@@ -265,7 +265,7 @@ void as_bad(const char *Format, ...)
fprintf(stderr,"Error: ");
vsprintf(buffer, Format, args);
- fprintf(stderr,buffer);
+ fputs (buffer,stderr);
#ifndef NO_LISTING
listing_error(buffer);
#endif
@@ -285,7 +285,7 @@ va_dcl
as_where();
va_start(args);
vsprintf(buffer, Format, args);
- fprintf(stderr,buffer);
+ fputs (buffer, stderr);
#ifndef NO_LISTING
listing_error(buffer);
#endif