Unify messages
authorUlrich Drepper <drepper@gmail.com>
Sat, 28 May 2011 13:49:05 +0000 (09:49 -0400)
committerUlrich Drepper <drepper@gmail.com>
Sat, 28 May 2011 13:49:05 +0000 (09:49 -0400)
Some shell scripts unnecessarily used different formats for some
messages.  Unify them to reduce the work of translators.

ChangeLog
debug/xtrace.sh
malloc/memusage.sh

index 188fc9065d8084337a66730283a98df99804f707..4a288d173cbfddd0083a89a5796a1281829c0207 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
 
+       * debug/xtrace.sh: Unify messages.
+       * malloc/memusage.sh: Likewise.
+
        [BZ #12813]
        * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
        time symbol from vDSO.  Substitute with vsyscall if not available.
index f2e9e22fee2bf78e74d15206cfa6bd0fdbe027ae..5cb193ab5aa58834c6b3c1bd534126391ab2737d 100755 (executable)
@@ -30,13 +30,13 @@ do_usage() {
 
 # Refer to --help option.
 help_info() {
-  printf >&2 $"Try \`xtrace --help' for more information.\n"
+  printf >&2 $"Try \`%s --help' or `%s --usage' for more information.\n" xtrace xtrace
   exit 1
 }
 
 # Message for missing argument.
 do_missing_arg() {
-  printf >&2 $"xtrace: option \`$1' requires an argument.\n"
+  printf >&2 $"%s: option '%s' requires an argument.\n" xtrace "$1"
   help_info
 }
 
index 757629241f3285e594d5e48a59ac71be3d8da27b..f1ccbb4d199a6f8a769a26b99e24dcc2906360a9 100755 (executable)
@@ -24,13 +24,13 @@ TEXTDOMAIN=libc
 
 # Print usage message.
 do_usage() {
-  echo >&2 $"Try \`memusage --help' for more information."
+  printf >&2 $"Try \`%s --help' or `%s --usage' for more information.\n" memusage memusage
   exit 1
 }
 
 # Message for missing argument.
 do_missing_arg() {
-  echo >&2 $"memusage: option \`$1' requires an argument"
+  printf >&2 $"%s: option '%s' requires an argument\n" memusage "$1"
   do_usage
 }