]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
global_init: make startup line consistent, less ugly
authorSage Weil <sage@newdream.net>
Wed, 31 Aug 2011 16:25:47 +0000 (09:25 -0700)
committerSage Weil <sage@newdream.net>
Wed, 31 Aug 2011 17:00:51 +0000 (10:00 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/global/global_init.cc

index 9b2deda15c2c0ca28124e64380557ef7c3ebda69..7e82f424fd690f82fe6480631e312b41f37f8bb1 100644 (file)
@@ -42,9 +42,9 @@ static void global_init_set_globals(CephContext *cct)
 static void output_ceph_version()
 {
   char buf[1024];
-  snprintf(buf, sizeof(buf), "ceph version %s.commit: %s. process: %s. "
-           "pid: %d", ceph_version_to_str(), git_version_to_str(),
-           get_process_name_cpp().c_str(), getpid());
+  snprintf(buf, sizeof(buf), "%s, process %s, pid %d",
+          pretty_version_to_str().c_str(),
+          get_process_name_cpp().c_str(), getpid());
   generic_dout(0) << buf << dendl;
 }