]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
backtrace: include ceph version
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 23 Sep 2010 16:39:59 +0000 (09:39 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 23 Sep 2010 17:57:22 +0000 (10:57 -0700)
src/Makefile.am
src/common/BackTrace.cc

index 553e18f191c4796af55541db021a01ff6908cf73..577f77189e2057ffffc4747aa7e72db366c16d19 100644 (file)
@@ -331,6 +331,7 @@ ceph_ver.h: .git_version
 
 ceph_ver.c: ceph_ver.h
 common/debug.cc: ceph_ver.h 
+common/BackTrace.cc: ceph_ver.h
 config.cc: ceph_ver.h
 
 
index e6d1f74ac7ccdb0a47fe67b4af4f755eaedb052f..f0ab8b00a8d7375a7b5c07651e1f6e8bb26ec350 100644 (file)
@@ -5,11 +5,16 @@
 #include <string.h>
 
 #include "BackTrace.h"
+#include "ceph_ver.c"
+
+#define _STR(x) #x
+#define STRINGIFY(x) _STR(x)
 
 namespace ceph {
 
 void BackTrace::print(std::ostream& out)
 {
+  out << "Generated by " << STRINGIFY(CEPH_VER) << std::endl;
   for (size_t i = skip; i < size; i++) {
     //      out << " " << (i-skip+1) << ": " << strings[i] << std::endl;