1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:38:12 +00:00

Kernel: Convert all *Builder::appendf() => appendff()

This commit is contained in:
Andreas Kling 2021-02-09 16:08:43 +01:00
parent 764af6cdec
commit 1f277f0bd9
8 changed files with 12 additions and 34 deletions

View file

@ -70,9 +70,7 @@ int Process::sys$create_thread(void* (*entry)(void*), Userspace<const Syscall::S
// So give it a unique name until the user calls $set_thread_name on it
// length + 4 to give space for our extra junk at the end
StringBuilder builder(m_name.length() + 4);
builder.append(m_name);
builder.appendf("[%d]", thread->tid().value());
thread->set_name(builder.to_string());
thread->set_name(String::formatted("{} [{}]", m_name, thread->tid().value()));
if (!is_thread_joinable)
thread->detach();