From 103d08c4915f2791bc338ba78a3ae626ef42f622 Mon Sep 17 00:00:00 2001 From: Daniel Jobson Date: Mon, 30 Sep 2024 14:35:37 +0200 Subject: [PATCH] Fix row alignment for qemu_hexdump --- libcommon/qemu_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcommon/qemu_debug.c b/libcommon/qemu_debug.c index 25161a3..7e18d17 100644 --- a/libcommon/qemu_debug.c +++ b/libcommon/qemu_debug.c @@ -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(); } }