Remove old prints + fix log types

Up next is the transition to a git submodule, should be simple enough
This commit is contained in:
Shay
2020-10-02 12:36:22 -06:00
parent 27ba6022bd
commit 59eedf6518
8 changed files with 13 additions and 58 deletions
-13
View File
@@ -68,7 +68,6 @@ void deci2_runner(SystemThreadInterface& iface) {
iface.initialization_complete();
// in our own thread, wait for the EE to register the first protocol driver
// printf("[DECI2] waiting for EE to register protos\n");
spdlog::debug("[DECI2] Waiting for EE to register protos");
server.wait_for_protos_ready();
// then allow the server to accept connections
@@ -83,7 +82,6 @@ void deci2_runner(SystemThreadInterface& iface) {
while (!iface.get_want_exit()) {
if (server.check_for_listener()) {
if (!saw_listener) {
printf("[DECI2] Connected!\n");
spdlog::debug("[DECI2] Connected!");
}
saw_listener = true;
@@ -121,24 +119,18 @@ void ee_runner(SystemThreadInterface& iface) {
}
if (g_ee_main_mem == (u8*)(-1)) {
// printf(" Failed to initialize main memory! %s\n", strerror(errno));
spdlog::debug("Failed to initialize main memory! {}", strerror(errno));
iface.initialization_complete();
return;
}
// printf(" Main memory mapped at 0x%016llx\n", (u64)(g_ee_main_mem));
spdlog::debug("Main memory mapped at 0x{:016x}", (u64)(g_ee_main_mem));
// printf(" Main memory size 0x%x bytes (%.3f MB)\n", EE_MAIN_MEM_SIZE,
// (double)EE_MAIN_MEM_SIZE / (1 << 20));
spdlog::debug("Main memory size 0x{} bytes ({} MB)", EE_MAIN_MEM_SIZE,
(double)EE_MAIN_MEM_SIZE / (1 << 20));
// printf("[EE] Initialization complete!\n");
spdlog::debug("[EE] Initialization complete!");
iface.initialization_complete();
// printf("[EE] Run!\n");
spdlog::debug("[EE] Run!");
memset((void*)g_ee_main_mem, 0, EE_MAIN_MEM_SIZE);
@@ -161,7 +153,6 @@ void ee_runner(SystemThreadInterface& iface) {
kprint_init_globals();
goal_main(g_argc, g_argv);
// printf("[EE] Done!\n");
spdlog::debug("[EE] Done!");
// // kill the IOP todo
@@ -178,7 +169,6 @@ void ee_runner(SystemThreadInterface& iface) {
*/
void iop_runner(SystemThreadInterface& iface) {
IOP iop;
// printf("[IOP] Restart!\n");
spdlog::debug("[IOP] Restart!");
iop.reset_allocator();
ee::LIBRARY_sceSif_register(&iop);
@@ -202,14 +192,11 @@ void iop_runner(SystemThreadInterface& iface) {
iface.initialization_complete();
// printf("[IOP] Wait for OVERLORD to be started...\n");
spdlog::debug("[IOP] Wait for OVERLORD to start...");
iop.wait_for_overlord_start_cmd();
if (iop.status == IOP_OVERLORD_INIT) {
// printf("[IOP] Run!\n");
spdlog::debug("[IOP] Run!");
} else {
// printf("[IOP] shutdown!\n");
spdlog::debug("[IOP] Shutdown!");
return;
}