Don't treat bug reporting message as a format string.
authorAndreas Schwab <aschwab@redhat.com>
Wed, 17 Jun 2009 03:34:55 +0000 (20:34 -0700)
committerUlrich Drepper <drepper@redhat.com>
Wed, 17 Jun 2009 03:34:55 +0000 (20:34 -0700)
ChangeLog
debug/xtrace.sh
elf/sln.c
malloc/memusage.sh
nss/getent.c
posix/getconf.c
sunrpc/rpcinfo.c
sysdeps/unix/sysv/linux/lddlibc4.c

index 70395b7..c91fe1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-06-15  Andreas Schwab  <aschwab@redhat.com>
+
+       * debug/xtrace.sh (do_help): Don't treat bug reporting message as
+       a format string.
+       * elf/sln.c (usage): Likewise.
+       * malloc/memusage.sh (do_help): Likewise.
+       * nss/getent.c (more_help): Likewise.
+       * posix/getconf.c (main): Likewise.
+       * sunrpc/rpcinfo.c (usage): Likewise.
+       * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
+
 2009-06-16  Ulrich Drepper  <drepper@redhat.com>
 
        * login/programs/pt_chown.c: Use libcap to drop privileges other than
index e3b9daa..8ef507e 100755 (executable)
@@ -55,7 +55,7 @@ Mandatory arguments to long options are also mandatory for any corresponding
 short options.
 
 "
-  printf $"For bug reporting instructions, please see:
+  echo $"For bug reporting instructions, please see:
 <http://www.gnu.org/software/libc/bugs.html>.
 "
   exit 0
index a8210c1..71707f5 100644 (file)
--- a/elf/sln.c
+++ b/elf/sln.c
@@ -83,8 +83,8 @@ static void
 usage (void)
 {
   printf (_("Usage: sln src dest|file\n\n"));
-  printf (_("For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
+  fputs (_("For bug reporting instructions, please see:\n\
+<http://www.gnu.org/software/libc/bugs.html>.\n"), stdout);
 }
 
 static int
index 8b372e4..9fab0a3 100755 (executable)
@@ -62,7 +62,7 @@ Mandatory arguments to long options are also mandatory for any corresponding
 short options.
 
 "
-  print $"For bug reporting instructions, please see:
+  echo $"For bug reporting instructions, please see:
 <http://www.gnu.org/software/libc/bugs.html>.
 "
   exit 0
index dbcae26..3a9430f 100644 (file)
@@ -905,9 +905,9 @@ more_help (int key, const char *text, void *input)
 
          fputs ("\n\n", fp);
 
-         fprintf (fp, gettext ("\
+         fputs (gettext ("\
 For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
+<http://www.gnu.org/software/libc/bugs.html>.\n"), fp);
 
          if (fclose (fp) == 0)
            return doc;
index 59ccab6..c9e1300 100644 (file)
@@ -1118,8 +1118,8 @@ Usage: getconf [-v SPEC] VAR\n\
 Get the configuration value for variable VAR, or for variable PATH_VAR\n\
 for path PATH.  If SPEC is given, give values for compilation\n\
 environment SPEC.\n\n"));
-      printf (gettext ("For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
+      fputs (gettext ("For bug reporting instructions, please see:\n\
+<http://www.gnu.org/software/libc/bugs.html>.\n"), stdout);
       return 0;
     }
 
index 5e00be9..6020cd5 100644 (file)
@@ -688,9 +688,9 @@ usage (FILE *stream)
   fputs (_("       rpcinfo -b prognum versnum\n"), stream);
   fputs (_("       rpcinfo -d prognum versnum\n"), stream);
   fputc ('\n', stream);
-  fprintf (stream, _("\
+  fputs (_("\
 For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
+<http://www.gnu.org/software/libc/bugs.html>.\n"), stream);
 }
 
 static void
index 694d129..6d57190 100644 (file)
@@ -59,8 +59,8 @@ main (int argc, char *argv[])
   if (strcmp (argv[1], "--help") == 0)
     {
       printf (gettext ("Usage: lddlibc4 FILE\n\n"));
-      printf (gettext ("For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
+      fputs (gettext ("For bug reporting instructions, please see:\n\
+<http://www.gnu.org/software/libc/bugs.html>.\n"), stdout);
       return 0;
     }
   else if (strcmp (argv[1], "--version") == 0)