mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-08 20:10:04 -04:00
Prefer logf over printf
This commit is contained in:
parent
11bd60b4f1
commit
10d17dff85
@ -419,7 +419,7 @@ void* kalloc::k_malloc(uint64_t bytes){
|
||||
auto block_start = reinterpret_cast<uintptr_t>(current) + sizeof(malloc_header_chunk);
|
||||
|
||||
if(TRACE_MALLOC){
|
||||
printf("m %u(%u) %h ", bytes, current->size(), block_start);
|
||||
logging::logf(logging::log_level::TRACE, "m %u(%u) %h\n", bytes, current->size(), block_start);
|
||||
}
|
||||
|
||||
return reinterpret_cast<void*>(block_start);
|
||||
@ -437,7 +437,7 @@ void kalloc::k_free(void* block){
|
||||
}
|
||||
|
||||
if(TRACE_MALLOC){
|
||||
printf("f %u %h ", free_header->size(), reinterpret_cast<uint64_t>(block));
|
||||
logging::logf(logging::log_level::TRACE, "f %u %h\n", free_header->size(), reinterpret_cast<uint64_t>(block));
|
||||
}
|
||||
|
||||
//Less memory is used
|
||||
|
Loading…
x
Reference in New Issue
Block a user