From a08b0fa706f79a506b219d59a0b58a6d5761dcd7 Mon Sep 17 00:00:00 2001 From: Lewis Gaul Date: Mon, 23 May 2022 23:48:18 +0100 Subject: [PATCH] Fix indexing in the test runner's log formatting --- lib/test_runner.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/test_runner.zig b/lib/test_runner.zig index e3bc7fec86f41375c739a2f67fa6c6319986419b..8a3c1f0ca79254676ba4d33caafddae0f3ea169a 100644 --- a/lib/test_runner.zig +++ b/lib/test_runner.zig @@ -124,7 +124,10 @@ pub fn log( log_err_count += 1; } if (@enumToInt(message_level) <= @enumToInt(std.testing.log_level)) { - std.debug.print("[{s}] ({s}): " ++ format ++ "\n", .{ @tagName(scope), @tagName(message_level) } ++ args); + std.debug.print( + "[" ++ @tagName(scope) ++ "] (" ++ @tagName(message_level) ++ "): " ++ format ++ "\n", + args, + ); } } -- 2.54.0