Fix leak detector message formatting

This commit is contained in:
kayomn 2023-07-22 15:20:31 +01:00
parent e71048e83d
commit 894dabb2c4
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ pub fn trace_leaks() void {
var current_node = context.head; var current_node = context.head;
while (current_node) |node| : (current_node = node.next) { 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, node.size,
@intFromPtr(node) + @sizeOf(AllocationNode), @intFromPtr(node) + @sizeOf(AllocationNode),
}); });