From: Yan Jun Date: Sat, 24 Jun 2017 03:37:13 +0000 (+0800) Subject: mgr: use readable errno strings X-Git-Tag: v12.1.1~261^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=455589906c76715681ad8cdb71975f5684b18970;p=ceph-ci.git mgr: use readable errno strings Signed-off-by: Yan Jun --- diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 24556d82614..afb156c728f 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -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());