Dumped some basic info about what is being cached and about the cache
itself. Output of test below:
...
Stats: MapAllocatorCache: EntriesCount: 33, MaxEntriesCount: 64, MaxEntrySize: 1048576
StartBlockAddress: 0x6d342c1000, EndBlockAddress: 0x6d342d2000, BlockSize: 69632
StartBlockAddress: 0x6fc45ff000, EndBlockAddress: 0x6fc462f000, BlockSize: 196608
...
Once we use %d here, I think we don't need the casting here? Sorry I may not make it clear.
Use the proper placeholders (%d, %zu, .etc) if possible, otherwise, casting with static_cast.
Like this, https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/scudo/standalone/report.cpp#L60-L61