[Glacier] Add proper string formatting for ErrorCodes.

This commit is contained in:
Drew Galbraith 2023-11-22 12:17:10 -08:00
parent a93aa3a426
commit 9f0e87b51d
5 changed files with 51 additions and 2 deletions

View file

@ -7,7 +7,7 @@
z_err_t ProcessExit(ZProcessExitReq* req) {
auto curr_thread = gScheduler->CurrentThread();
dbgln("Exit code: {x}", req->code);
dbgln("Exit code: {}", static_cast<glcr::ErrorCode>(req->code));
curr_thread->process().Exit();
panic("Returned from thread exit");
return glcr::UNIMPLEMENTED;