use memory formatting in tracking allocator doc

This commit is contained in:
Laytan Laats
2023-09-01 22:05:04 +02:00
parent aab2fa1af9
commit 93caf5b311

View File

@@ -24,7 +24,7 @@ main :: proc() {
_main()
for _, leak in track.allocation_map {
fmt.printf("%v leaked %v bytes\n", leak.location, leak.size)
fmt.printf("%v leaked %m\n", leak.location, leak.size)
}
for bad_free in track.bad_free_array {
fmt.printf("%v allocation %p was freed badly\n", bad_free.location, bad_free.memory)