From c8f629451101dd3c9e9677165fde5f29f4398bc6 Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Sun, 20 Aug 2023 19:05:59 -0400 Subject: [PATCH] Fix address printing in Debug_HexDump --- sys/kern/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/debug.c b/sys/kern/debug.c index ecdc137..f61d621 100644 --- a/sys/kern/debug.c +++ b/sys/kern/debug.c @@ -38,7 +38,7 @@ Debug_PrintHex(const char *data, size_t length, off_t off, size_t limit) if (ix >= limit || ix >= length) return; - kprintf("%08lx ", ix); + kprintf("%08lx ", (uintptr_t)data+ix); size_t col; for (col = 0; col < row_size; col++) { size_t ixc = ix + col;