diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-08 22:53:51 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-08 22:53:51 -0500 |
| commit | 8b2622cdd58cec697d9d1f8f49717b6ce7ee3e2e (patch) | |
| tree | 3de817be4757dd1ad0bbdc0c7c3f863deb0f1d43 /lib/std/os.zig | |
| parent | 5874cb04bd544ca155d1489bb0bdf9397fa3b41c (diff) | |
| download | zig-8b2622cdd58cec697d9d1f8f49717b6ce7ee3e2e.tar.gz zig-8b2622cdd58cec697d9d1f8f49717b6ce7ee3e2e.zip | |
std.fmt.format: tuple parameter instead of var args
Diffstat (limited to 'lib/std/os.zig')
| -rw-r--r-- | lib/std/os.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index 5d3bb705a9..8d6c7dd05e 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -2603,7 +2603,7 @@ pub fn realpathC(pathname: [*:0]const u8, out_buffer: *[MAX_PATH_BYTES]u8) RealP defer close(fd); var procfs_buf: ["/proc/self/fd/-2147483648".len:0]u8 = undefined; - const proc_path = std.fmt.bufPrint(procfs_buf[0..], "/proc/self/fd/{}\x00", fd) catch unreachable; + const proc_path = std.fmt.bufPrint(procfs_buf[0..], "/proc/self/fd/{}\x00", .{fd}) catch unreachable; return readlinkC(@ptrCast([*:0]const u8, proc_path.ptr), out_buffer); } @@ -2832,7 +2832,7 @@ pub const UnexpectedError = error{ /// and you get an unexpected error. pub fn unexpectedErrno(err: usize) UnexpectedError { if (unexpected_error_tracing) { - std.debug.warn("unexpected errno: {}\n", err); + std.debug.warn("unexpected errno: {}\n", .{err}); std.debug.dumpCurrentStackTrace(null); } return error.Unexpected; |
