From 5b98275e8492a0d841b99830fa4301b6249f0edc 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 4424bb1af123..e9859ac3be1e 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -1349,7 +1349,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" {