mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 17:55:06 +00:00
SystemMonitor: Use new format functions.
This commit is contained in:
parent
6ed3a4b5fe
commit
0dec600a2a
7 changed files with 21 additions and 21 deletions
|
@ -55,9 +55,9 @@ void ThreadStackWidget::set_ids(pid_t pid, pid_t tid)
|
|||
|
||||
void ThreadStackWidget::refresh()
|
||||
{
|
||||
auto file = Core::File::construct(String::format("/proc/%d/stacks/%d", m_pid, m_tid));
|
||||
auto file = Core::File::construct(String::formatted("/proc/{}/stacks/{}", m_pid, m_tid));
|
||||
if (!file->open(Core::IODevice::ReadOnly)) {
|
||||
m_stack_editor->set_text(String::format("Unable to open %s", file->filename().characters()));
|
||||
m_stack_editor->set_text(String::formatted("Unable to open {}", file->filename()));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue