Refactoring!
This commit is contained in:
@@ -119,12 +119,13 @@ Line* _HudsArea<msgn_t, rec_t, attr_t, board_t, last_t, __HUDSON>::make_dump_msg
|
||||
|
||||
int _count = 0;
|
||||
char* _ptr = (char*)&_hdr;
|
||||
for(;_count < sizeof(HudsHdr); _ptr+=16,_count+=16) {
|
||||
sprintf(buf, "%04X ", _count);
|
||||
for (;_count < sizeof(HudsHdr); _ptr+=16,_count+=16)
|
||||
{
|
||||
gsprintf(PRINTF_DECLARE_BUFFER(buf), "%04X ", _count);
|
||||
HexDump16(buf+7, _ptr, 16, HEX_DUMP2);
|
||||
line = AddLine(line, buf);
|
||||
}
|
||||
sprintf(buf, "%04X ", _count);
|
||||
gsprintf(PRINTF_DECLARE_BUFFER(buf), "%04X ", _count);
|
||||
HexDump16(buf+7, _ptr, sizeof(HudsHdr)%16, HEX_DUMP2);
|
||||
line = AddLine(line, buf);
|
||||
|
||||
|
Reference in New Issue
Block a user