This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OBV] ARI Fixes: remove trailingnew line from messages
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 18 Mar 2011 14:12:27 +0100
- Subject: [OBV] ARI Fixes: remove trailingnew line from messages
FYI, I committed the following
patch under the obvious rule.
It fixes the two issues
trailing new line 2 A message should not have a trailing new
line
in current ARI web page.
Pierre Muller
GDB pascal language maintainer
2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
ARI fixes: Messages should have no trailing new lines.
* darwin-nat.c (mach_check_error): Remove trailing new line from
warning function call message.
* record.c (bfdcore_read): Idem for error call.
Index: src/gdb/darwin-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/darwin-nat.c,v
retrieving revision 1.23
diff -u -p -r1.23 darwin-nat.c
--- src/gdb/darwin-nat.c 16 Mar 2011 17:59:02 -0000 1.23
+++ src/gdb/darwin-nat.c 18 Mar 2011 12:47:47 -0000
@@ -196,7 +196,7 @@ mach_check_error (kern_return_t ret, con
if (func == NULL)
func = _("[UNKNOWN]");
- warning (_("Mach error at \"%s:%u\" in function \"%s\": %s (0x%lx)\n"),
+ warning (_("Mach error at \"%s:%u\" in function \"%s\": %s (0x%lx)"),
file, line, func, mach_error_string (ret), (unsigned long) ret);
}
Index: src/gdb/record.c
===================================================================
RCS file: /cvs/src/src/gdb/record.c,v
retrieving revision 1.61
diff -u -p -r1.61 record.c
--- src/gdb/record.c 16 Mar 2011 17:59:02 -0000 1.61
+++ src/gdb/record.c 18 Mar 2011 12:47:47 -0000
@@ -2154,7 +2154,7 @@ bfdcore_read (bfd *obfd, asection *osec,
if (ret)
*offset += len;
else
- error (_("Failed to read %d bytes from core file %s ('%s').\n"),
+ error (_("Failed to read %d bytes from core file %s ('%s')."),
len, bfd_get_filename (obfd),
bfd_errmsg (bfd_get_error ()));
}