]> sourceware.org Git - systemtap.git/commitdiff
2007-06-14 Frank Ch. Eigler <fche@elastic.org>
authorfche <fche>
Thu, 14 Jun 2007 21:38:24 +0000 (21:38 +0000)
committerfche <fche>
Thu, 14 Jun 2007 21:38:24 +0000 (21:38 +0000)
* translate.cxx (emit_module_init): Emit translator/elfutils
version numbers together.
* main.cxx (version): Ditto.
(main): Skip printing tapset directories where no sources were found.

ChangeLog
main.cxx
translate.cxx

index 8d577b3ecaa04bb57c5d5c1e02e0733b47310144..a20252f54564c035e68a7ce399dcf40f4a10d2dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-06-14  Frank Ch. Eigler  <fche@elastic.org>
+
+       * translate.cxx (emit_module_init): Emit translator/elfutils
+       version numbers together.
+       * main.cxx (version): Ditto.
+       (main): Skip printing tapset directories where no sources were found.
+
 2007-06-14  Frank Ch. Eigler  <fche@elastic.org>
 
        PR 3331 cont'd.
index 0c975c1dd5e6bb3580e2394924ca9d618c418870..6c28b25e004972d4099a7f425b47e5a88c89b608 100644 (file)
--- a/main.cxx
+++ b/main.cxx
@@ -44,8 +44,8 @@ version ()
 {
   clog
     << "SystemTap translator/driver "
-    << "(version " << VERSION << " built " << DATE << ")" << endl
-    << "(Using " << dwfl_version (NULL) << " libraries.)" << endl
+    << "(version " << VERSION << "/" << dwfl_version (NULL)
+    << " built " << DATE << ")" << endl
     << "Copyright (C) 2005-2007 Red Hat, Inc. and others" << endl
     << "This is free software; see the source for copying conditions." << endl;
 }
@@ -563,9 +563,9 @@ main (int argc, char * const argv [])
             rc ++;
           // GLOB_NOMATCH is acceptable
 
-          if (s.verbose>1)
+          if (s.verbose>1 && globbuf.gl_pathc > 0)
             clog << "Searched '" << dir << "', "
-                 << "match count " << globbuf.gl_pathc << endl;
+                 << "found " << globbuf.gl_pathc << endl;
 
           for (unsigned j=0; j<globbuf.gl_pathc; j++)
             {
index b5fef8904ec9fd1983e35594a32c46a435683df8..e799c42a6ad68121c0037e436f5f0b0c1ca8f0d1 100644 (file)
 #include <string>
 #include <cassert>
 
+extern "C" {
+#include <elfutils/libdwfl.h>
+}
+
 using namespace std;
 
 struct var;
@@ -1162,7 +1166,7 @@ c_unparser::emit_module_init ()
   // Print a message to the kernel log about this module.  This is
   // intended to help debug problems with systemtap modules.
   o->newline() << "printk (KERN_DEBUG \"%s: "
-               << "systemtap: " << VERSION
+               << "systemtap: " << VERSION << "/" << dwfl_version (NULL)
                << ", base: %p"
                << ", memory: %lu+%lu+%lu+%lu+%lu data+text+ctx+io+glob"
                << ", probes: " << session->probes.size()
This page took 0.041524 seconds and 5 git commands to generate.