]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
lockdep: warn on stderr (via derr), not stdout
authorSage Weil <sage@newdream.net>
Fri, 24 Feb 2012 15:06:51 +0000 (07:06 -0800)
committerSage Weil <sage@newdream.net>
Fri, 24 Feb 2012 19:15:12 +0000 (11:15 -0800)
Otherwise we screw up ceph-conf output and the like.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/global/global_init.cc

index b23ef2b4bd46242f51329cd93dc5697d4080681b..49b9c106b95688f08ad22fda0ef3fd9de4f6a0c0 100644 (file)
@@ -103,8 +103,7 @@ void global_init(std::vector < const char* >& args,
   install_standard_sighandlers();
 
   if (g_lockdep) {
-    cout << TEXT_YELLOW << "*** lockdep is enabled (" << g_lockdep
-        << ") ***" << TEXT_NORMAL << std::endl;
+    derr << "lockdep is enabled" << dendl;
     lockdep_register_ceph_context(cct);
   }
   register_assert_context(cct);