This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: remove trailing \n in py-auto-load.c i18n string...


Hello,

This is to fix a new ARI warning flagged recently in py-auto-load.c.

2010-04-27  Joel Brobecker  <brobecker@adacore.com>

       ARI warning fix.
       * python/py-auto-load.c (source_section_scripts): Remove trailing
       new-line in i18n string.

Fixed thusly...

-- 
Joel
commit 3900c813c9ed574c1ded42608b3952d0d3bdc57a
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Tue Apr 27 09:35:02 2010 -0700

    ARI warning fix.
    
            * python/py-auto-load.c (source_section_scripts): Remove trailing
            new-line in i18n string.

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f221fd..aa87a5c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-27  Joel Brobecker  <brobecker@adacore.com>
+
+	ARI warning fix.
+	* python/py-auto-load.c (source_section_scripts): Remove trailing
+	new-line in i18n string.
+
 2010-04-26  Doug Evans  <dje@google.com>
 
 	* serial.c (serial_write): Handle serial_debug_p akin to serial_read.
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c
index a06c126..932ae68 100644
--- a/gdb/python/py-auto-load.c
+++ b/gdb/python/py-auto-load.c
@@ -260,7 +260,7 @@ source_section_scripts (struct objfile *objfile, const char *source_name,
 	  /* We don't throw an error, the program is still debuggable.
 	     Check in_hash_table to only print the warning once.  */
 	  if (! in_hash_table)
-	    warning (_("%s (referenced in %s): %s\n"),
+	    warning (_("%s (referenced in %s): %s"),
 		     file, GDBPY_AUTO_SECTION_NAME, safe_strerror (errno));
 	  continue;
 	}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]