diff options
Diffstat (limited to 'src/host/Console.zig')
| -rw-r--r-- | src/host/Console.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/Console.zig b/src/host/Console.zig index e6be2f0..b22facb 100644 --- a/src/host/Console.zig +++ b/src/host/Console.zig @@ -95,7 +95,7 @@ fn complete(self: *Console, extra: []const []const u8) void { first = candidate; common = candidate.len; } - const match = std.fmt.bufPrint(matches[used..], "{s} ", .{candidate}) catch continue; + const match = std.mem.print(matches[used..], "{s} ", .{candidate}) catch continue; used += match.len; count += 1; }; @@ -120,7 +120,7 @@ pub fn log(self: *Console, message: []const u8) void { pub fn print(self: *Console, comptime fmt: []const u8, args: anytype) void { var buf: [512]u8 = undefined; - self.log(std.fmt.bufPrint(&buf, fmt, args) catch "(message too long)"); + self.log(std.mem.print(&buf, fmt, args) catch "(message too long)"); } /// Runs one line. Host commands first; anything else goes to the sketch. |
