chore: misc print message improvements
This commit is contained in:
parent
6c88a0aec2
commit
f2f4bb205a
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue