Skip to content

Commit

Permalink
Fix row alignment for qemu_hexdump
Browse files Browse the repository at this point in the history
  • Loading branch information
dehanj committed Sep 30, 2024
1 parent 3b2810b commit 103d08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcommon/qemu_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void qemu_hexdump(const uint8_t *buf, int len)
(void)qemu_putchar(' ');
}

if (i != 1 && i % 16 == 1) {
if ((i + 1) % 16 == 0) {
qemu_lf();
}
}
Expand Down

0 comments on commit 103d08c

Please sign in to comment.