Skip to content

Commit 264a6f7

Browse files
Just some highliting.
1 parent 22b6577 commit 264a6f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/kernel/C/heap.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define HEAP_H
1212
#include <heap.h>
1313
#include <stddef.h>
14+
#include <graphics.h>
1415

1516
uint32_t last_alloc = 0;
1617
uint32_t heap_end = 0;
@@ -33,9 +34,9 @@ void mm_init(uint32_t kernel_end)
3334

3435
void mm_print_out()
3536
{
36-
printf("Memory used : %d bytes", memory_used);
37-
printf("Memory free : %d bytes", heap_end - heap_begin - memory_used);
38-
printf("Heap size : %d bytes", heap_end - heap_begin);
37+
printf("%sMemory used :%s %d bytes", yellow_color, reset_color, memory_used);
38+
printf("%sMemory free :%s %d bytes", yellow_color, reset_color, heap_end - heap_begin - memory_used);
39+
printf("%sHeap size :%s %d bytes", yellow_color, reset_color, heap_end - heap_begin);
3940
}
4041

4142
void free(void *mem)

0 commit comments

Comments
 (0)