Add pid/tid to all log messages

This commit is contained in:
Drew Galbraith 2023-05-30 23:22:29 -07:00
parent 2eefda6114
commit 9e3df0ccd0
4 changed files with 27 additions and 9 deletions

View file

@ -73,7 +73,7 @@ extern "C" uint64_t SyscallHandler(uint64_t call_id, char* message) {
panic("Returned from thread exit");
break;
case Z_DEBUG_PRINT:
dbgln("[%u.%u] [Debug] %s", thread.pid(), thread.tid(), message);
dbgln("[Debug] %s", message);
break;
case Z_PROCESS_SPAWN:
return ProcessSpawn(reinterpret_cast<ZProcessSpawnReq*>(message));