aboutsummaryrefslogtreecommitdiff
path: root/src/mingw.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-11-26 13:19:30 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-02 17:12:57 -0700
commit1c13ca5a05978011283ff55a586443b10b69fc85 (patch)
tree30a411c8e359467ba520d3f8e68ebf8500aceffa /src/mingw.zig
parentdd973fb365dbbe11ce5beac8b4889bfab3fddc4d (diff)
downloadzig-1c13ca5a05978011283ff55a586443b10b69fc85.tar.gz
zig-1c13ca5a05978011283ff55a586443b10b69fc85.zip
stage2: Use {s} instead of {} when formatting strings
Diffstat (limited to 'src/mingw.zig')
-rw-r--r--src/mingw.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mingw.zig b/src/mingw.zig
index 246b0f33dc..d55cc28b2b 100644
--- a/src/mingw.zig
+++ b/src/mingw.zig
@@ -381,7 +381,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void {
const term = child.wait() catch |err| {
// TODO surface a proper error here
- log.err("unable to spawn {}: {}", .{ args[0], @errorName(err) });
+ log.err("unable to spawn {s}: {s}", .{ args[0], @errorName(err) });
return error.ClangPreprocessorFailed;
};
@@ -395,7 +395,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void {
},
else => {
// TODO surface a proper error here
- log.err("clang terminated unexpectedly with stderr: {}", .{stderr});
+ log.err("clang terminated unexpectedly with stderr: {s}", .{stderr});
return error.ClangPreprocessorFailed;
},
}