diff options
author | fche <fche> | 2006-01-28 02:42:08 +0000 |
---|---|---|
committer | fche <fche> | 2006-01-28 02:42:08 +0000 |
commit | b0ee93c4ceec6ee4d44c611cd968386faa233c1c (patch) | |
tree | 2bf71dc5e9cddd931fda85d8531f5a8e1cffba0a /buildrun.cxx | |
parent | 5ee1c56b3508b67910a8196724f3df2182d55efd (diff) | |
download | systemtap-steved-b0ee93c4ceec6ee4d44c611cd968386faa233c1c.tar.gz systemtap-steved-b0ee93c4ceec6ee4d44c611cd968386faa233c1c.tar.xz systemtap-steved-b0ee93c4ceec6ee4d44c611cd968386faa233c1c.zip |
2006-01-27 Frank Ch. Eigler <fche@elastic.org>
* main.cxx: Make "-v" (verbose) flag a counter.
* stap.1.in: Document this.
* session.h: Corresponding changes.
* {elaborate,buildrun,tapsets,translate}.cxx: Update all uses of
verbose flag to compare it to sensible level for value of message.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 0ed3a3d5..535e31bc 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -84,12 +84,12 @@ compile_pass (systemtap_session& s) + string (" -C \"") + module_dir + string("\""); make_cmd += string(" M=\"") + s.tmpdir + string("\" modules"); - if (s.verbose) + if (s.verbose > 1) make_cmd += " V=1"; else make_cmd += " -s >/dev/null 2>&1"; - if (s.verbose) clog << "Running " << make_cmd << endl; + if (s.verbose > 1) clog << "Running " << make_cmd << endl; rc = system (make_cmd.c_str()); return rc; @@ -105,7 +105,7 @@ run_pass (systemtap_session& s) string stpd_cmd = string("sudo ") + string(PKGLIBDIR) + "/stpd " + (s.bulk_mode ? "" : "-r ") - + (s.verbose ? "" : "-q ") + + (s.verbose>1 ? "" : "-q ") + (s.output_file.empty() ? "" : "-o " + s.output_file + " "); stpd_cmd += "-d " + stringify(getpid()) + " "; @@ -121,7 +121,7 @@ run_pass (systemtap_session& s) stpd_cmd += s.tmpdir + "/" + s.module_name + ".ko"; - if (s.verbose) clog << "Running " << stpd_cmd << endl; + if (s.verbose>1) clog << "Running " << stpd_cmd << endl; signal (SIGHUP, SIG_IGN); signal (SIGINT, SIG_IGN); |