diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-03 22:12:54 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-03 22:12:54 +0000 |
commit | 86f379db8587547addb050663aa86ca8d87d0c5f (patch) | |
tree | d22db7d2c01daa219e69e3411d6bf46ac1749b0c | |
parent | 5b9160c04441b1d6d3512f66cbe648bab7a96b85 (diff) |
Spacing and additional stream header byte logging.
-rw-r--r-- | lib/server/ProtocolUncertainStream.cpp | 8 |
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"); } } |