[10613] A bit of cleanup in ByteBuffer::hexlike

This commit is contained in:
DasBlub 2010-10-16 15:35:44 +02:00
parent fc5dd54f37
commit 57a88d2e3f
2 changed files with 7 additions and 32 deletions

View file

@ -446,48 +446,23 @@ class ByteBuffer
{
if ((i == (j * 8)) && ((i != (k * 16))))
{
if (read<uint8>(i) < 0x10)
{
sLog.outDebugInLine("| 0%X ", read<uint8>(i) );
}
else
{
sLog.outDebugInLine("| %X ", read<uint8>(i) );
}
sLog.outDebugInLine("| %02X ", read<uint8>(i));
++j;
}
else if (i == (k * 16))
{
if (read<uint8>(i) < 0x10)
{
sLog.outDebugInLine("\n");
if(sLog.IsIncludeTime())
sLog.outDebugInLine(" ");
sLog.outDebugInLine("0%X ", read<uint8>(i) );
}
else
{
sLog.outDebugInLine("\n");
if(sLog.IsIncludeTime())
sLog.outDebugInLine(" ");
sLog.outDebugInLine("%X ", read<uint8>(i) );
}
sLog.outDebugInLine("%02X ", read<uint8>(i));
++k;
++j;
}
else
{
if (read<uint8>(i) < 0x10)
{
sLog.outDebugInLine("0%X ", read<uint8>(i) );
}
else
{
sLog.outDebugInLine("%X ", read<uint8>(i) );
}
sLog.outDebugInLine("%02X ", read<uint8>(i));
}
}
sLog.outDebugInLine("\n");

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10612"
#define REVISION_NR "10613"
#endif // __REVISION_NR_H__