]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: use readable errno strings
authorYan Jun <yan.jun8@zte.com.cn>
Sat, 24 Jun 2017 03:37:13 +0000 (11:37 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Mon, 26 Jun 2017 02:07:25 +0000 (10:07 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/mgr/DaemonServer.cc

index 24556d82614b0e2b6eccece01de490839a220361..afb156c728fd5d78fd0f6d6738a201bff4c9c6ea 100644 (file)
@@ -24,6 +24,7 @@
 #include "messages/MCommandReply.h"
 #include "messages/MPGStats.h"
 #include "messages/MOSDScrub.h"
+#include "common/errno.h"
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_mgr
@@ -451,7 +452,7 @@ bool DaemonServer::handle_command(MCommand *m)
         con->mark_disposable();
       }
 
-      dout(1) << "do_command r=" << r << " " << rs << dendl;
+      dout(1) << "handle_command " << cpp_strerror(r) << " " << rs << dendl;
       if (con) {
         MCommandReply *reply = new MCommandReply(r, rs);
         reply->set_tid(m->get_tid());