From b0ee93c4ceec6ee4d44c611cd968386faa233c1c Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 28 Jan 2006 02:42:08 +0000 Subject: 2006-01-27 Frank Ch. Eigler * 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. --- buildrun.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'buildrun.cxx') 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); -- cgit