]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MWatchNotify: print more nicer
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 23:19:23 +0000 (15:19 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:34:04 +0000 (10:34 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MWatchNotify.h

index af426805fbb5085392f2e8057594bee0ec7f52df..50657ca2d8f7908d6dc705f0ffb9932a367a5450 100644 (file)
@@ -80,7 +80,12 @@ public:
 
   const char *get_type_name() const { return "watch-notify"; }
   void print(ostream& out) const {
-    out << "watch-notify(c=" << cookie << " v=" << ver << " i=" << notify_id << " opcode=" << (int)opcode << " r = " << return_code << ")";
+    out << "watch-notify("
+       << ceph_watch_event_name(opcode) << " (" << (int)opcode << ")"
+       << " cookie " << cookie
+       << " notify " << notify_id
+       << " ret " << return_code
+       << ")";
   }
 };