From 894dabb2c44b8f6b29f2654f400ae1b6b18229c0 Mon Sep 17 00:00:00 2001 From: kayomn Date: Sat, 22 Jul 2023 15:20:31 +0100 Subject: [PATCH] Fix leak detector message formatting --- source/ona/heap.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ona/heap.zig b/source/ona/heap.zig index 8639461..8f5d785 100644 --- a/source/ona/heap.zig +++ b/source/ona/heap.zig @@ -159,7 +159,7 @@ pub fn trace_leaks() void { var current_node = context.head; while (current_node) |node| : (current_node = node.next) { - std.debug.print("{d} byte leak at 0x{x} detected:\n", .{ + std.debug.print("{d} byte leak at 0x{x} detected", .{ node.size, @intFromPtr(node) + @sizeOf(AllocationNode), });