From 8b58b19ec3989b676cd5a1584089040caee14289 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 17 Nov 2009 18:09:21 +0000 Subject: Integrated InitialStatusMap into cluster code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881423 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQContentBody.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/framing/AMQContentBody.cpp') diff --git a/cpp/src/qpid/framing/AMQContentBody.cpp b/cpp/src/qpid/framing/AMQContentBody.cpp index d0ae9a2902..72f7d9978e 100644 --- a/cpp/src/qpid/framing/AMQContentBody.cpp +++ b/cpp/src/qpid/framing/AMQContentBody.cpp @@ -40,5 +40,7 @@ void qpid::framing::AMQContentBody::decode(Buffer& buffer, uint32_t _size){ void qpid::framing::AMQContentBody::print(std::ostream& out) const { out << "content (" << encodedSize() << " bytes)"; - out << " " << data.substr(0,16) << "..."; + const size_t max = 32; + out << " " << data.substr(0, max); + if (data.size() > max) out << "..."; } -- cgit v1.2.1