From c94d26dff1d0813b53c15f03f3e21db1562a74d8 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sat, 13 May 2023 20:40:56 -0400 Subject: [PATCH] kfree: fix format specifier --- mem/slab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem/slab.c b/mem/slab.c index c67dc66..d3d2d83 100644 --- a/mem/slab.c +++ b/mem/slab.c @@ -206,7 +206,7 @@ void kfree(void *ptr) struct rbnode *n = rbt_search(&kmalloc_tree, (uint64_t)ptr); if (n == NULL) { - printf(LOG_ERROR "kmalloc: invalid free: %p\n", ptr); + printf(LOG_ERROR "kmalloc: invalid free: %X\n", ptr); return; }