[Zion] Add proc prefix without allocation

This commit is contained in:
Drew Galbraith 2023-11-14 21:41:35 -08:00
parent 4ff4947bca
commit 52142afeb8
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ void dbg(const glcr::StringView& str) {
void AddProcPrefix() {
if (gScheduler != nullptr) {
auto t = gScheduler->CurrentThread();
dbg(glcr::StrFormat("[{}.{}] ", t->pid(), t->tid()));
char buffer[16];
glcr::FixedStringBuilder builder(buffer, 16);
glcr::StrFormatIntoBuffer(builder, "[{}.{}] ", t->pid(), t->tid());
dbg(builder);
}
}