mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
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:
parent
52fc046907
commit
cad65307b7
@ -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" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user