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; }