Commit cad65307b7

Nico Elbers <nico.b.elbers@gmail.com>
2024-08-29 15:01:29
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
Changed files (1)
lib
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" {