mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
small fix for hexdump()
svn-id: r11617
This commit is contained in:
parent
fe05c6fb4d
commit
5ff7c1d153
@ -56,13 +56,14 @@ void hexdump(const byte * data, int len, int bytesPerLine) {
|
||||
return;
|
||||
|
||||
printf("%06x: ", offset);
|
||||
for (i = 0; i < len; i++) {
|
||||
printf("%02x ", data[i]);
|
||||
for (i = 0; i < bytesPerLine; i++) {
|
||||
if (i < len)
|
||||
printf("%02x ", data[i]);
|
||||
else
|
||||
printf(" ");
|
||||
if (i % 4 == 3)
|
||||
printf(" ");
|
||||
}
|
||||
for (; i < bytesPerLine; i++)
|
||||
printf(" ");
|
||||
printf(" |");
|
||||
for (i = 0; i < len; i++) {
|
||||
c = data[i];
|
||||
|
Loading…
Reference in New Issue
Block a user