chore: misc print message improvements

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:40 -03:00
parent 896ae0935a
commit 0d1717538b
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);
}