From: Sage Weil Date: Fri, 31 May 2013 16:20:50 +0000 (-0700) Subject: messages/MClientCapRelease: fix string output X-Git-Tag: v0.65~167 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1cb7dbd94ab686987d1ef6e58a5f7a9406a3d477;p=ceph.git messages/MClientCapRelease: fix string output Use the vector size, not what is in the header, which is not yet filled in for outgoing messages. Signed-off-by: Sage Weil --- diff --git a/src/messages/MClientCapRelease.h b/src/messages/MClientCapRelease.h index 5258c5d970f7..c1281dee6699 100644 --- a/src/messages/MClientCapRelease.h +++ b/src/messages/MClientCapRelease.h @@ -33,7 +33,7 @@ private: public: const char *get_type_name() const { return "client_cap_release";} void print(ostream& out) const { - out << "client_cap_release(" << head.num << ")"; + out << "client_cap_release(" << caps.size() << ")"; } void decode_payload() {