mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
fix log_hex to print nibbles in right order.
This commit is contained in:
parent
57baefaf5f
commit
302abd3be5
1 changed files with 2 additions and 2 deletions
|
@ -249,8 +249,8 @@ log_hex( const XP_U8* memp, XP_U16 len, const char* tag )
|
|||
for ( i = 0; i < NUM_PER_LINE && offset < len; ++i ) {
|
||||
XP_U8 byte = memp[offset];
|
||||
for ( j = 0; j < 2; ++j ) {
|
||||
*valsp++ = hex[byte & 0x0F];
|
||||
byte >>= 4;
|
||||
*valsp++ = hex[(byte & 0xF0) >> 4];
|
||||
byte <<= 4;
|
||||
}
|
||||
*valsp++ = ':';
|
||||
|
||||
|
|
Loading…
Reference in a new issue