From 34fc615d2c9ce46451c278179dee547b17ee961a Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 1 May 2011 21:22:11 +0000 Subject: [PATCH] added code to display msg text in debug mode git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4180 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/serialiser/rsmsgitems.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libretroshare/src/serialiser/rsmsgitems.cc b/libretroshare/src/serialiser/rsmsgitems.cc index 368beb20e..8f8653e49 100644 --- a/libretroshare/src/serialiser/rsmsgitems.cc +++ b/libretroshare/src/serialiser/rsmsgitems.cc @@ -31,6 +31,7 @@ /*** #define RSSERIAL_DEBUG 1 +#define CHAT_DEBUG 1 ***/ #include @@ -223,6 +224,14 @@ bool RsChatMsgItem::serialise(void *data, uint32_t& pktsize) ok &= setRawUInt32(data, tlvsize, &offset, chatFlags); ok &= setRawUInt32(data, tlvsize, &offset, sendTime); ok &= SetTlvWideString(data, tlvsize, &offset, TLV_TYPE_WSTR_MSG, message); +#ifdef CHAT_DEBUG + std::cerr << "Serialized the following message:" << std::endl; + std::cerr << "========== BEGIN MESSAGE =========" << std::endl; + for(int i=0;i