diff --git a/zion/debug/debug.cpp b/zion/debug/debug.cpp index 0256bdd..27279e6 100644 --- a/zion/debug/debug.cpp +++ b/zion/debug/debug.cpp @@ -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); } }