chore: misc print message improvements

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-04-29 12:41:05 -05:00
parent 6c88a0aec2
commit f2f4bb205a
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ const Eeprom = struct {
} }
if (self.state == .RequestEnd) { 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; self.state = .Ready;
return; return;
} }

View File

@ -175,7 +175,7 @@ pub fn main() anyerror!void {
SDL.SDL_RenderPresent(renderer); SDL.SDL_RenderPresent(renderer);
const actual = emu_rate.calc(); 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); SDL.SDL_SetWindowTitle(window, dyn_title.ptr);
} }