[Concept] [PATCH 13/24] malloc: Refactor malloc_dump() to use output callback