summaryrefslogtreecommitdiff
path: root/Kernel/TTY
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-11 22:07:01 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-11 22:07:01 +0100
commit7c4ddecacbdb3d8279dbe346e7f7ba17fcdbc109 (patch)
tree30bb622653ef26769b26883012d59b18f29e71ea /Kernel/TTY
parent0ae9ae48fafd1ea4bca02111c01002853326dd66 (diff)
downloadserenity-7c4ddecacbdb3d8279dbe346e7f7ba17fcdbc109.zip
Kernel: Convert a bunch of String::format() => String::formatted()
Diffstat (limited to 'Kernel/TTY')
-rw-r--r--Kernel/TTY/MasterPTY.cpp4
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/TTY/MasterPTY.cpp b/Kernel/TTY/MasterPTY.cpp
index 9ac4ba2290..eca9f4c2fa 100644
--- a/Kernel/TTY/MasterPTY.cpp
+++ b/Kernel/TTY/MasterPTY.cpp
@@ -41,7 +41,7 @@ MasterPTY::MasterPTY(unsigned index)
, m_slave(adopt(*new SlavePTY(*this, index)))
, m_index(index)
{
- m_pts_name = String::format("/dev/pts/%u", m_index);
+ m_pts_name = String::formatted("/dev/pts/{}", m_index);
auto process = Process::current();
set_uid(process->uid());
set_gid(process->gid());
@@ -143,7 +143,7 @@ int MasterPTY::ioctl(FileDescription& description, unsigned request, FlatPtr arg
String MasterPTY::absolute_path(const FileDescription&) const
{
- return String::format("ptm:%s", m_pts_name.characters());
+ return String::formatted("ptm:{}", m_pts_name);
}
}
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 961ee9f8c2..4f87c49fd5 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -70,7 +70,7 @@ VirtualConsole::VirtualConsole(const unsigned index)
{
ASSERT(index < s_max_virtual_consoles);
- m_tty_name = String::format("/dev/tty%u", m_index);
+ m_tty_name = String::formatted("/dev/tty{}", m_index);
m_terminal.set_size(80, 25);
s_consoles[index] = this;