[Zion] Add proc prefix without allocation
This commit is contained in:
parent
4ff4947bca
commit
52142afeb8
|
@ -30,7 +30,11 @@ void dbg(const glcr::StringView& str) {
|
||||||
void AddProcPrefix() {
|
void AddProcPrefix() {
|
||||||
if (gScheduler != nullptr) {
|
if (gScheduler != nullptr) {
|
||||||
auto t = gScheduler->CurrentThread();
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue