| author | |
| committer | |
| log | cad65307b757d4dfcbae018dbdb4c2a98b87b7e3 |
| tree | 34c8619654309b73de4691ace819884722faad56 |
| parent | 52fc0469079d061c7482f5708557c35b389cd800 |
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 #210941 files changed, 1 insertions(+), 1 deletions(-)
lib/std/debug.zig+1-1| ... | ... | @@ -1347,7 +1347,7 @@ pub fn dumpStackPointerAddr(prefix: []const u8) void { |
| 1347 | 1347 | const sp = asm ("" |
| 1348 | 1348 | : [argc] "={rsp}" (-> usize), |
| 1349 | 1349 | ); |
| 1350 | std.debug.print("{} sp = 0x{x}\n", .{ prefix, sp }); | |
| 1350 | std.debug.print("{s} sp = 0x{x}\n", .{ prefix, sp }); | |
| 1351 | 1351 | } |
| 1352 | 1352 | |
| 1353 | 1353 | test "manage resources correctly" { |