]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: make version in backtrace look nice
authorSage Weil <sage@newdream.net>
Fri, 24 Sep 2010 21:01:52 +0000 (14:01 -0700)
committerSage Weil <sage@newdream.net>
Fri, 24 Sep 2010 21:01:52 +0000 (14:01 -0700)
match debug log
include .h, not .c

src/common/BackTrace.cc

index f0ab8b00a8d7375a7b5c07651e1f6e8bb26ec350..0c6eb1b5a61da59f51af70e2455b345059d8e7fb 100644 (file)
@@ -5,7 +5,9 @@
 #include <string.h>
 
 #include "BackTrace.h"
-#include "ceph_ver.c"
+
+#include "ceph_ver.h"
+#include "acconfig.h"
 
 #define _STR(x) #x
 #define STRINGIFY(x) _STR(x)
@@ -14,7 +16,7 @@ namespace ceph {
 
 void BackTrace::print(std::ostream& out)
 {
-  out << "Generated by " << STRINGIFY(CEPH_VER) << std::endl;
+  out << " ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
   for (size_t i = skip; i < size; i++) {
     //      out << " " << (i-skip+1) << ": " << strings[i] << std::endl;