summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-01-13 22:36:42 +0000
committerfche <fche>2006-01-13 22:36:42 +0000
commit2cfb0e462faa1bbfe585cdddc46ae70c1650cb58 (patch)
treebc61e8124070dc2edaa304f824a88c3b26ea79a2 /main.cxx
parentc37d4942f3f766d4c25a6fcd172640b453f0110c (diff)
downloadsystemtap-steved-2cfb0e462faa1bbfe585cdddc46ae70c1650cb58.tar.gz
systemtap-steved-2cfb0e462faa1bbfe585cdddc46ae70c1650cb58.tar.xz
systemtap-steved-2cfb0e462faa1bbfe585cdddc46ae70c1650cb58.zip
2006-01-13 Frank Ch. Eigler <fche@elastic.org>
* main.cxx (main): Suppress "Try again with -v" message if already verbose.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/main.cxx b/main.cxx
index 8e7b882e..648032d8 100644
--- a/main.cxx
+++ b/main.cxx
@@ -378,6 +378,11 @@ main (int argc, char * const argv [])
<< s.library_files.size()
<< " library script(s)." << endl;
+ if (rc)
+ cerr << "Pass 1: parse failed. "
+ << (s.verbose ? "" : "Try again with '-v' (verbose) option.")
+ << endl;
+
if (rc || s.last_pass == 1) goto cleanup;
// PASS 2: ELABORATION
@@ -438,7 +443,8 @@ main (int argc, char * const argv [])
if (rc)
cerr << "Pass 2: analysis failed. "
- << "Try again with '-v' (verbose) option." << endl;
+ << (s.verbose ? "" : "Try again with '-v' (verbose) option.")
+ << endl;
if (rc || s.last_pass == 2) goto cleanup;
@@ -457,8 +463,9 @@ main (int argc, char * const argv [])
<< "\"" << endl;
if (rc)
- cerr << "Pass 2: translation failed. "
- << "Try again with '-v' (verbose) option." << endl;
+ cerr << "Pass 3: translation failed. "
+ << (s.verbose ? "" : "Try again with '-v' (verbose) option.")
+ << endl;
if (rc || s.last_pass == 3) goto cleanup;
@@ -467,7 +474,8 @@ main (int argc, char * const argv [])
if (rc)
cerr << "Pass 4: compilation failed. "
- << "Try again with '-v' (verbose) option." << endl;
+ << (s.verbose ? "" : "Try again with '-v' (verbose) option.")
+ << endl;
// XXX: what to do if rc==0 && last_pass == 4? dump .ko file to stdout?
if (rc || s.last_pass == 4) goto cleanup;
@@ -477,7 +485,8 @@ main (int argc, char * const argv [])
if (rc)
cerr << "Pass 5: run failed. "
- << "Try again with '-v' (verbose) option." << endl;
+ << (s.verbose ? "" : "Try again with '-v' (verbose) option.")
+ << endl;
// if (rc) goto cleanup;