Skip to content

Commit cad6530

Browse files
NicoElbersandrewrk
authored andcommitted
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 parent 52fc046 commit cad6530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/debug.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

13531353
test "manage resources correctly" {

0 commit comments

Comments
 (0)