Changed print statement to only appear in debug builds

This commit is contained in:
bigbass1997 2025-03-12 16:03:33 -05:00 committed by YoshiRulz
parent 7ccd69bd5b
commit abc6900c72
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -361,6 +361,7 @@ extern "sysv64" fn syscall(
old
} else if a1 > old {
h.memory_block.mmap_fixed(AddressRange { start: old, size: a1 - old }, Protection::RW, true).unwrap();
#[cfg(debug_assertions)]
println!("Allocated {} bytes on sbrk heap, usage {}/{}", a1 - old, a1 - addr.start, addr.size);
a1
} else {