mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-29 06:50:32 +00:00
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.
This commit is contained in:
parent
571c4c2636
commit
4772861e5b
@ -1,3 +1,9 @@
|
||||
Fri Aug 21 14:38:44 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
|
||||
|
||||
* messages.c (as_warn): Use fputs, not fprintf, with a buffer that
|
||||
has already been formatted (but may still contain %-characters).
|
||||
(as_bad): Likewise.
|
||||
|
||||
Wed Aug 19 09:25:09 1992 Ken Raeburn (raeburn@cygnus.com)
|
||||
|
||||
* as.h (enum _relax_state): Start off at one, not zero, to better
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user