aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLewis Gaul <lewis.gaul@gmail.com>2022-05-23 23:48:18 +0100
committerVeikka Tuominen <git@vexu.eu>2022-07-24 12:08:02 +0300
commita08b0fa706f79a506b219d59a0b58a6d5761dcd7 (patch)
treeabebf10b42d8d892e791dfd5e1fec814687a045a
parent7cbd586ace46a8e8cebab660ebca3cfc049305d9 (diff)
downloadzig-a08b0fa706f79a506b219d59a0b58a6d5761dcd7.tar.gz
zig-a08b0fa706f79a506b219d59a0b58a6d5761dcd7.zip
Fix indexing in the test runner's log formatting
-rw-r--r--lib/test_runner.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/test_runner.zig b/lib/test_runner.zig
index e3bc7fec86..8a3c1f0ca7 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,
+ );
}
}