summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/server/ProtocolUncertainStream.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/server/ProtocolUncertainStream.cpp b/lib/server/ProtocolUncertainStream.cpp
index b8abbfa1..84a213a8 100644
--- a/lib/server/ProtocolUncertainStream.cpp
+++ b/lib/server/ProtocolUncertainStream.cpp
@@ -103,7 +103,8 @@ int ProtocolUncertainStream::Read(void *pBuffer, int NBytes, int Timeout)
}
else
{
- // Read the header byte to find out how much there is in the next block
+ // Read the header byte to find out how much there is
+ // in the next block
uint8_t header;
if(mrSource.Read(&header, 1, Timeout) == 0)
{
@@ -139,8 +140,9 @@ int ProtocolUncertainStream::Read(void *pBuffer, int NBytes, int Timeout)
THROW_EXCEPTION(ServerException, ProtocolUncertainStreamBadBlockHeader)
}
- BOX_TRACE("Next block has " <<
- mBytesLeftInCurrentBlock << "bytes");
+ BOX_TRACE("Read header byte " << (int)header << ", "
+ "next block has " <<
+ mBytesLeftInCurrentBlock << " bytes");
}
}