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