From a9a89e59bc2883c8514da54a89d72b1fb969d6f8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 8 Aug 2016 23:35:08 +0800 Subject: [PATCH] test/ceph_test_msgr: better looking log Signed-off-by: Kefu Chai --- src/test/msgr/test_msgr.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/msgr/test_msgr.cc b/src/test/msgr/test_msgr.cc index 9e71ba612466f..f7bf0811c6b0a 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); -- 2.39.5