[llvm-commits] [test-suite] r153020 - /test-suite/trunk/tools/timeit.c

Daniel Dunbar daniel at zuster.org
Sun Mar 18 12:12:00 PDT 2012


Author: ddunbar
Date: Sun Mar 18 14:11:59 2012
New Revision: 153020

URL: http://llvm.org/viewvc/llvm-project?rev=153020&view=rev
Log:
[test-suite] tools/timeit: Tidy up --help.

Modified:
    test-suite/trunk/tools/timeit.c

Modified: test-suite/trunk/tools/timeit.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/timeit.c?rev=153020&r1=153019&r2=153020&view=diff
==============================================================================
--- test-suite/trunk/tools/timeit.c (original)
+++ test-suite/trunk/tools/timeit.c Sun Mar 18 14:11:59 2012
@@ -345,6 +345,7 @@
 }
 
 static void usage(int is_error) {
+#define WRAPPED "\n                       "
   fprintf(stderr, "usage: %s [options] command ... arguments ...\n",
           g_program_name);
   fprintf(stderr, "Options:\n");
@@ -359,27 +360,27 @@
   fprintf(stderr, "  %-20s %s", "--summary <PATH>",
           "Write monitored process summary (exit code and time) to PATH.\n");
   fprintf(stderr, "  %-20s %s", "--redirect-output <PATH>",
-          "Redirect stdout and stderr for the target to PATH.\n");
+          WRAPPED "Redirect stdout and stderr for the target to PATH.\n");
   fprintf(stderr, "  %-20s %s", "--redirect-input <PATH>",
-          "Redirect stdin for the target to PATH.\n");
-  fprintf(stderr, "  %-20s %s", "--redirect-input <PATH>",
-          "Redirect stdin for the target to PATH.\n");
+          WRAPPED "Redirect stdin for the target to PATH.\n");
   fprintf(stderr, "  %-20s %s", "--limit-cpu <N>",
-          "Limit the target to N seconds of CPU time.\n");
+          WRAPPED "Limit the target to N seconds of CPU time.\n");
   fprintf(stderr, "  %-20s %s", "--limit-stack-size <N>",
-          "Limit the target to N bytes of stack space.\n");
+          WRAPPED "Limit the target to N bytes of stack space.\n");
   fprintf(stderr, "  %-20s %s", "--limit-data-size <N>",
-          "Limit the target to N bytes of data.\n");
+          WRAPPED "Limit the target to N bytes of data.\n");
   fprintf(stderr, "  %-20s %s", "--limit-rss-size <N>",
-          "Limit the target to N bytes of resident memory.\n");
+          WRAPPED "Limit the target to N bytes of resident memory.\n");
   fprintf(stderr, "  %-20s %s", "--limit-file-size <N>",
-          "Limit the target to creating files no more than N bytes.\n");
+          WRAPPED "Limit the target to creating files no more than N bytes.\n");
   fprintf(stderr, "  %-20s %s", "--limit-core <N>",
-          "Limit the size for which core files will be generated.\n");
+          WRAPPED "Limit the size for which core files will be generated.\n");
   fprintf(stderr, "  %-20s %s", "--limit-file-count <N>",
-          "Limit the maximum number of open files the target can have.\n");
+          (WRAPPED
+           "Limit the maximum number of open files the target can have.\n"));
   fprintf(stderr, "  %-20s %s", "--limit-subprocess-count <N>",
-          ("Limit the maximum number of simultaneous processes "
+          (WRAPPED
+           "Limit the maximum number of simultaneous processes "
            "the target can use.\n"));
   _exit(is_error);
 }





More information about the llvm-commits mailing list