From 318fe96319717f85543e80c7cf26be34bc7ce69c Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Fri, 25 Sep 2026 17:20:56 +0200 Subject: [PATCH] maybe fix colors in kmalloc --- kernel/src/kmalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/src/kmalloc.c b/kernel/src/kmalloc.c index 07157f4..fb67cb4 100644 --- a/kernel/src/kmalloc.c +++ b/kernel/src/kmalloc.c @@ -55,15 +55,15 @@ void* kmalloc(size_t size) { size_t alloc_index; { uint8_t leading_zeros = __builtin_clzll(size); - if (__builtin_popcountll(size) == 1) { + if (/*__builtin_popcountll(size) == */1) { alloc_index = leading_zeros; } else { alloc_index = sizeof(size) * CHAR_BIT - leading_zeros; } if (alloc_index > KMALLOC_MAX_SIZE) { // NOT IMPLEMENTED - printk("Cannot allocate [%lu] bytes: \e[1MNOT " - "IMPLEMENTED!\e[8M\n", + printk("Cannot allocate [%lu] bytes: \e[1mNOT " + "IMPLEMENTED!\e[0m\n", size); return NULL; }