authorgravatar for nico.b.elbers@gmail.comNico Elbers <nico.b.elbers@gmail.com> 2024-08-29 15:01:29+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-09-01 00:45:31-07:00
logcad65307b757d4dfcbae018dbdb4c2a98b87b7e3
tree34c8619654309b73de4691ace819884722faad56
parent52fc0469079d061c7482f5708557c35b389cd800

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

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/debug.zig+1-1
......@@ -1347,7 +1347,7 @@ pub fn dumpStackPointerAddr(prefix: []const u8) void {
13471347 const sp = asm (""
13481348 : [argc] "={rsp}" (-> usize),
13491349 );
1350 std.debug.print("{} sp = 0x{x}\n", .{ prefix, sp });
1350 std.debug.print("{s} sp = 0x{x}\n", .{ prefix, sp });
13511351}
13521352
13531353test "manage resources correctly" {