We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8ffee2 commit b9911eeCopy full SHA for b9911ee
1 file changed
src/backend/backend.h
@@ -277,16 +277,15 @@ namespace snmalloc
277
auto p = local_state.object_range->alloc_range(size);
278
279
#ifdef SNMALLOC_TRACING
280
- std::cout << "Alloc chunk: " << p.unsafe_ptr() << " (" << size << ")"
281
- << std::endl;
+ message<1024>("Alloc chunk: {} ({})", p.unsafe_ptr(), size);
282
#endif
283
if (p == nullptr)
284
{
285
local_state.get_meta_range()->dealloc_range(
286
meta_cap, PAGEMAP_METADATA_STRUCT_SIZE);
287
errno = ENOMEM;
288
289
- std::cout << "Out of memory" << std::endl;
+ message<1024>("Out of memory");
290
291
return {p, nullptr};
292
}
0 commit comments