From: Kefu Chai Date: Mon, 8 Aug 2016 15:35:08 +0000 (+0800) Subject: test/ceph_test_msgr: better looking log X-Git-Tag: ses5-milestone5~176^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10612%2Fhead;p=ceph.git test/ceph_test_msgr: better looking log Signed-off-by: Kefu Chai --- diff --git a/src/test/msgr/test_msgr.cc b/src/test/msgr/test_msgr.cc index 9e71ba612466..f7bf0811c6b0 100644 --- a/src/test/msgr/test_msgr.cc +++ b/src/test/msgr/test_msgr.cc @@ -114,7 +114,7 @@ class FakeDispatcher : public Dispatcher { void ms_handle_fast_connect(Connection *con) { lock.Lock(); - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; Session *s = static_cast(con->get_priv()); if (!s) { s = new Session(con); @@ -154,7 +154,7 @@ class FakeDispatcher : public Dispatcher { } bool ms_handle_reset(Connection *con) { Mutex::Locker l(lock); - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; Session *s = static_cast(con->get_priv()); if (s) { s->con.reset(NULL); // break con <-> session ref cycle @@ -165,7 +165,7 @@ class FakeDispatcher : public Dispatcher { } void ms_handle_remote_reset(Connection *con) { Mutex::Locker l(lock); - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; Session *s = static_cast(con->get_priv()); if (s) { s->con.reset(NULL); // break con <-> session ref cycle @@ -1344,7 +1344,7 @@ class MarkdownDispatcher : public Dispatcher { } void ms_handle_fast_connect(Connection *con) { - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; Mutex::Locker l(lock); conns.insert(con); } @@ -1377,7 +1377,7 @@ class MarkdownDispatcher : public Dispatcher { return true; } bool ms_handle_reset(Connection *con) { - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; Mutex::Locker l(lock); conns.erase(con); usleep(rand() % 500); @@ -1386,7 +1386,7 @@ class MarkdownDispatcher : public Dispatcher { void ms_handle_remote_reset(Connection *con) { Mutex::Locker l(lock); conns.erase(con); - lderr(g_ceph_context) << __func__ << con << dendl; + lderr(g_ceph_context) << __func__ << " " << con << dendl; } void ms_fast_dispatch(Message *m) { assert(0);