]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: print entity_name_t with a .
authorSage Weil <sage@newdream.net>
Mon, 26 Sep 2011 23:25:47 +0000 (16:25 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 28 Sep 2011 04:29:22 +0000 (21:29 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/msg/msg_types.h

index f49726727e0cee95c645be30abefe1d572b3ea7c..8539f6b2b80b0defba505031d6caea45c6cc1998 100644 (file)
@@ -85,9 +85,9 @@ inline bool operator< (const entity_name_t& l, const entity_name_t& r) {
 inline std::ostream& operator<<(std::ostream& out, const entity_name_t& addr) {
   //if (addr.is_namer()) return out << "namer";
   if (addr.is_new() || addr.num() < 0)
-    return out << addr.type_str() << "?";
+    return out << addr.type_str() << ".?";
   else
-    return out << addr.type_str() << addr.num();
+    return out << addr.type_str() << '.' << addr.num();
 }
 inline std::ostream& operator<<(std::ostream& out, const ceph_entity_name& addr) {
   return out << *(const entity_name_t*)&addr;