]> sourceware.org Git - systemtap.git/commitdiff
PR12729: make childprocess spawning/waitpid both -vv verbose
authorFrank Ch. Eigler <fche@redhat.com>
Sat, 14 May 2011 15:26:17 +0000 (11:26 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sat, 14 May 2011 15:26:17 +0000 (11:26 -0400)
With recent code, -vv was enough to get a "Running ...." message for
child processes of the translator, but not their "Spawn waitpid ..."
return codes.  That required -vvv.  Make them consistent.

* util.cxx (stap_waitpid): Report at verbosity > 1.

util.cxx

index 8a4c86e5705c776a9e5eebfc4c762a0ccefe8dad..95494438db51d0505c6925f74b0bc7ab0796e18f 100644 (file)
--- a/util.cxx
+++ b/util.cxx
@@ -454,7 +454,7 @@ stap_waitpid(int verbose, pid_t pid)
     {
       spawned_pids.erase(pid);
       ret = WIFEXITED(status) ? WEXITSTATUS(status) : 128 + WTERMSIG(status);
-      if (verbose > 2)
+      if (verbose > 1)
         clog << _F("Spawn waitpid result (0x%x): %d", status, ret) << endl;
     }
   else
This page took 0.02646 seconds and 5 git commands to generate.