]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: add prefix to xio msgr logs 8148/head
authorRoi Dayan <roid@mellanox.com>
Thu, 10 Mar 2016 09:20:27 +0000 (11:20 +0200)
committerRoi Dayan <roid@mellanox.com>
Wed, 16 Mar 2016 08:35:36 +0000 (10:35 +0200)
This will help identify the msgr instance.
This is the same prefix style as the other msgrs.

Change-Id: I47aeaf5e62c5c728691affb67858bd791ea20ba9
Signed-off-by: Roi Dayan <roid@mellanox.com>
src/msg/xio/XioMessenger.cc

index b3208678bb5670f173d32cb091885fd9996a7a26..af086620775e2d52bdc42b9e7f52f5bb9625ba6a 100644 (file)
@@ -249,6 +249,12 @@ static string xio_uri_from_entity(const string &type,
 } /* xio_uri_from_entity */
 
 /* XioMessenger */
+#undef dout_prefix
+#define dout_prefix _prefix(_dout, this)
+static ostream& _prefix(std::ostream *_dout, XioMessenger *msgr) {
+  return *_dout << "-- " << msgr->get_myaddr() << " ";
+}
+
 XioMessenger::XioMessenger(CephContext *cct, entity_name_t name,
                           string mname, uint64_t _nonce, uint64_t features,
                           DispatchStrategy *ds)