From cad65307b757d4dfcbae018dbdb4c2a98b87b7e3 Mon Sep 17 00:00:00 2001 From: Nico Elbers Date: Thu, 29 Aug 2024 15:01:29 +0200 Subject: [PATCH] std: make debug.dumpStackPointerAddr compile Very simply add the format specifier to the print statement. Since debug.print is hard coded I couldn't come up with a reasonalble way to add a test, and since this function is simple enough I doubt it's useful. fixes one part of #21094 --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 554788f4fd..fd6676504f 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -1347,7 +1347,7 @@ pub fn dumpStackPointerAddr(prefix: []const u8) void { const sp = asm ("" : [argc] "={rsp}" (-> usize), ); - std.debug.print("{} sp = 0x{x}\n", .{ prefix, sp }); + std.debug.print("{s} sp = 0x{x}\n", .{ prefix, sp }); } test "manage resources correctly" {