]> sourceware.org Git - systemtap.git/commitdiff
staprun: arrange -v params commeasurate with stap -v
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 10 Oct 2012 21:43:53 +0000 (17:43 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 10 Oct 2012 22:31:47 +0000 (18:31 -0400)
* buildrun.cxx (make_run_command): Instead of a meager zero-to-two
  -v's for staprun, add just as many as s.verbose currently indicates.

buildrun.cxx

index 6108c0f5fc19fd0a1de1e4172198a3546cac4390..1b068518e7adc02fbc4c0ff4682822bc74db1e77 100644 (file)
@@ -657,9 +657,7 @@ make_run_command (systemtap_session& s, const string& remotedir,
   // for now, just spawn staprun
   vector<string> staprun_cmd;
   staprun_cmd.push_back(getenv("SYSTEMTAP_STAPRUN") ?: BINDIR "/staprun");
-  if (s.verbose>1)
-    staprun_cmd.push_back("-v");
-  if (s.verbose>2)
+  for (unsigned i=0; i<s.verbose; i++)
     staprun_cmd.push_back("-v");
   if (s.suppress_warnings)
     staprun_cmd.push_back("-w");
This page took 0.028529 seconds and 5 git commands to generate.