commit cad65307b757d4dfcbae018dbdb4c2a98b87b7e3 (tree)
parent 52fc0469079d061c7482f5708557c35b389cd800
Author: Nico Elbers <nico.b.elbers@gmail.com>
Date: Thu, 29 Aug 2024 15:01:29 +0200
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
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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" {