From 0d1717538bed490e4ba9f8c383b434866a9f7b96 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:40 -0300 Subject: [PATCH] chore: misc print message improvements --- src/bus/backup.zig | 2 +- src/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bus/backup.zig b/src/bus/backup.zig index 8b0c913..1f856e6 100644 --- a/src/bus/backup.zig +++ b/src/bus/backup.zig @@ -374,7 +374,7 @@ const Eeprom = struct { } if (self.state == .RequestEnd) { - if (bit != 0) log.err("Request did not end in 0u1. EEPROM parsing invariant violated", .{}); + if (bit != 0) log.debug("EEPROM Request did not end in 0u1. TODO: is this ok?", .{}); self.state = .Ready; return; } diff --git a/src/main.zig b/src/main.zig index 3d17a3f..4ca2075 100644 --- a/src/main.zig +++ b/src/main.zig @@ -175,7 +175,7 @@ pub fn main() anyerror!void { SDL.SDL_RenderPresent(renderer); const actual = emu_rate.calc(); - const dyn_title = std.fmt.bufPrint(&dyn_title_buf, "{s} [Emu: {d:0>3.2}fps, {d:0>3.2}%] ", .{ window_title, actual, actual * 100 / expected_rate }) catch unreachable; + const dyn_title = std.fmt.bufPrint(&dyn_title_buf, "{s} [Emu: {d:.1}fps, {d:0>6.2}%] ", .{ window_title, actual, actual * 100 / expected_rate }) catch unreachable; SDL.SDL_SetWindowTitle(window, dyn_title.ptr); }