]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
prefix git sha1 with commit:
authorSage Weil <sage@newdream.net>
Wed, 13 Oct 2010 15:50:55 +0000 (08:50 -0700)
committerSage Weil <sage@newdream.net>
Wed, 13 Oct 2010 15:50:55 +0000 (08:50 -0700)
This just makes it into a link when pasted directly into redmine.

Signed-off-by: Sage Weil <sage@newdream.net>
src/common/BackTrace.cc
src/common/debug.cc
src/config.cc

index 0c6eb1b5a61da59f51af70e2455b345059d8e7fb..b68f40c2d7b93d4d989550fa0235c1f54c068f41 100644 (file)
@@ -16,7 +16,7 @@ namespace ceph {
 
 void BackTrace::print(std::ostream& out)
 {
-  out << " ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
+  out << " ceph version " << VERSION << " (commit:" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
   for (size_t i = skip; i < size; i++) {
     //      out << " " << (i-skip+1) << ": " << strings[i] << std::endl;
 
index fa0c407bf9703fb511263b822744c07492d837da..86def0548a14b9e583b4f72ebc03c999f0fb2751 100644 (file)
@@ -163,7 +163,7 @@ void _dout_open_log()
     *_dout << g_clock.now() << " --- " << getpid() << " opened log "
           << _dout_path << " ---" << std::endl;
   }
-  *_dout << "ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
+  *_dout << "ceph version " << VERSION << " (commit:" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
 
   if (need_symlink)
     create_name_symlink();
index 0ea37dc81c6934fa43b7ea86ed1a235f27dd7853..324ebccb3b170fb13f3b6039eed62e7a24ed32fb 100644 (file)
@@ -1086,7 +1086,7 @@ void parse_startup_config_options(std::vector<const char*>& args, const char *mo
 
   FOR_EACH_ARG(args) {
     if (CONF_ARG_EQ("version", 'v')) {
-      cout << "ceph version " << VERSION << " (" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
+      cout << "ceph version " << VERSION << " (commit:" << STRINGIFY(CEPH_GIT_VER) << ")" << std::endl;
       _exit(0);
     } else if (CONF_ARG_EQ("conf", 'c')) {
        CONF_SAFE_SET_ARG_VAL(&g_conf.conf, OPT_STR);