prefix git sha1 with commit:

This just makes it into a link when pasted directly into redmine.

Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2010-10-13 08:50:55 -07:00
parent dc295a371c
commit e6d28ce380
3 changed files with 3 additions and 3 deletions

View 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;

View 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();

View 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);