mirror of
https://github.com/open-goal/jak-project
synced 2026-09-06 19:21:00 -04:00
Change important printfs to lg::print (#3355)
This allows them to be logged into a file, useful for debugging. With this, GOAL `format` and C-kernel `Msg` (and its variants) will be logged.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <cstring>
|
||||
|
||||
#include "common/goal_constants.h"
|
||||
#include "common/log/log.h"
|
||||
#include "common/repl/util.h"
|
||||
#include "common/util/Timer.h"
|
||||
|
||||
@@ -120,7 +121,7 @@ void KernelDispatch(u32 dispatcher_func) {
|
||||
|
||||
float time_ms = dispatch_timer.getMs();
|
||||
if (time_ms > 50) {
|
||||
printf("Kernel dispatch time: %.3f ms\n", time_ms);
|
||||
lg::print("Kernel dispatch time: {:.3f} ms\n", time_ms);
|
||||
}
|
||||
|
||||
// flush stdout
|
||||
|
||||
Reference in New Issue
Block a user