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
This commit is contained in:
Nico Elbers 2024-08-29 15:01:29 +02:00 committed by Andrew Kelley
parent 52fc046907
commit cad65307b7

View File

@ -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" {