projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
breakpoints/19546: Fix crash after updating breakpoints
[deliverable/binutils-gdb.git]
/
gas
/
messages.c
diff --git
a/gas/messages.c
b/gas/messages.c
index 979253d2bec75503675e00664f673ee7df331b44..f161dc38d72f30e92e3451ff350569da3e547625 100644
(file)
--- a/
gas/messages.c
+++ b/
gas/messages.c
@@
-1,5
+1,5
@@
/* messages.c - error reporter -
/* messages.c - error reporter -
- Copyright (C) 1987-201
4
Free Software Foundation, Inc.
+ Copyright (C) 1987-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
This file is part of GAS, the GNU Assembler.
GAS is free software; you can redistribute it and/or modify
@@
-151,13
+151,12
@@
as_warn_internal (char *file, unsigned int line, char *buffer)
if (file)
{
if (line != 0)
if (file)
{
if (line != 0)
- fprintf (stderr, "%s:%u:
", file, line
);
+ fprintf (stderr, "%s:%u:
%s%s\n", file, line, _("Warning: "), buffer
);
else
else
- fprintf (stderr, "%s:
", file
);
+ fprintf (stderr, "%s:
%s%s\n", file, _("Warning: "), buffer
);
}
}
- fprintf (stderr, _("Warning: "));
- fputs (buffer, stderr);
- (void) putc ('\n', stderr);
+ else
+ fprintf (stderr, "%s%s\n", _("Warning: "), buffer);
#ifndef NO_LISTING
listing_warning (buffer);
#endif
#ifndef NO_LISTING
listing_warning (buffer);
#endif
@@
-217,13
+216,12
@@
as_bad_internal (char *file, unsigned int line, char *buffer)
if (file)
{
if (line != 0)
if (file)
{
if (line != 0)
- fprintf (stderr, "%s:%u:
", file, line
);
+ fprintf (stderr, "%s:%u:
%s%s\n", file, line, _("Error: "), buffer
);
else
else
- fprintf (stderr, "%s:
", file
);
+ fprintf (stderr, "%s:
%s%s\n", file, _("Error: "), buffer
);
}
}
- fprintf (stderr, _("Error: "));
- fputs (buffer, stderr);
- (void) putc ('\n', stderr);
+ else
+ fprintf (stderr, "%s%s\n", _("Error: "), buffer);
#ifndef NO_LISTING
listing_error (buffer);
#endif
#ifndef NO_LISTING
listing_error (buffer);
#endif
@@
-297,10
+295,10
@@
as_assert (const char *file, int line, const char *fn)
as_show_where ();
fprintf (stderr, _("Internal error!\n"));
if (fn)
as_show_where ();
fprintf (stderr, _("Internal error!\n"));
if (fn)
- fprintf (stderr, _("Assertion failure in %s at %s
line
%d.\n"),
+ fprintf (stderr, _("Assertion failure in %s at %s
:
%d.\n"),
fn, file, line);
else
fn, file, line);
else
- fprintf (stderr, _("Assertion failure at %s
line
%d.\n"), file, line);
+ fprintf (stderr, _("Assertion failure at %s
:
%d.\n"), file, line);
fprintf (stderr, _("Please report this bug.\n"));
xexit (EXIT_FAILURE);
}
fprintf (stderr, _("Please report this bug.\n"));
xexit (EXIT_FAILURE);
}
@@
-313,10
+311,10
@@
as_abort (const char *file, int line, const char *fn)
{
as_show_where ();
if (fn)
{
as_show_where ();
if (fn)
- fprintf (stderr, _("Internal error, aborting at %s
line
%d in %s\n"),
+ fprintf (stderr, _("Internal error, aborting at %s
:
%d in %s\n"),
file, line, fn);
else
file, line, fn);
else
- fprintf (stderr, _("Internal error, aborting at %s
line
%d\n"),
+ fprintf (stderr, _("Internal error, aborting at %s
:
%d\n"),
file, line);
fprintf (stderr, _("Please report this bug.\n"));
xexit (EXIT_FAILURE);
file, line);
fprintf (stderr, _("Please report this bug.\n"));
xexit (EXIT_FAILURE);
This page took
0.02373 seconds
and
4
git commands to generate.