From: Sage Weil Date: Thu, 13 Nov 2014 23:19:23 +0000 (-0800) Subject: messages/MWatchNotify: print more nicer X-Git-Tag: v0.91~101 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=889cd874e2ded7a1350659449d777af8f4a7a918;p=ceph.git messages/MWatchNotify: print more nicer Signed-off-by: Sage Weil --- diff --git a/src/messages/MWatchNotify.h b/src/messages/MWatchNotify.h index af426805fbb5..50657ca2d8f7 100644 --- a/src/messages/MWatchNotify.h +++ b/src/messages/MWatchNotify.h @@ -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 + << ")"; } };