Skip to content

Commit b9911ee

Browse files
committed
Use message not cout.
1 parent c8ffee2 commit b9911ee

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/backend/backend.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,16 +277,15 @@ namespace snmalloc
277277
auto p = local_state.object_range->alloc_range(size);
278278

279279
#ifdef SNMALLOC_TRACING
280-
std::cout << "Alloc chunk: " << p.unsafe_ptr() << " (" << size << ")"
281-
<< std::endl;
280+
message<1024>("Alloc chunk: {} ({})", p.unsafe_ptr(), size);
282281
#endif
283282
if (p == nullptr)
284283
{
285284
local_state.get_meta_range()->dealloc_range(
286285
meta_cap, PAGEMAP_METADATA_STRUCT_SIZE);
287286
errno = ENOMEM;
288287
#ifdef SNMALLOC_TRACING
289-
std::cout << "Out of memory" << std::endl;
288+
message<1024>("Out of memory");
290289
#endif
291290
return {p, nullptr};
292291
}

0 commit comments

Comments
 (0)