]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
easier to read entity_addr
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 19 Nov 2007 23:22:41 +0000 (23:22 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 19 Nov 2007 23:22:41 +0000 (23:22 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2092 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/msg/msg_types.h

index b79fc70a3cf2e6e5df47756a9ca8937c6395f511..c1b4cc1cc2b02cfa90f94f53458fc97b7ffff825 100644 (file)
@@ -133,9 +133,7 @@ struct entity_addr_t {
 
 inline ostream& operator<<(ostream& out, const entity_addr_t &addr)
 {
-  return out << addr.v.ipaddr
-            << '#' << addr.v.nonce
-            << '@' << addr.v.erank;
+  return out << addr.v.ipaddr << '/' << addr.v.nonce << '/' << addr.v.erank;
 }
 
 inline bool operator==(const entity_addr_t& a, const entity_addr_t& b) { return memcmp(&a, &b, sizeof(a)) == 0; }