mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
099b83fd28
commit
6d97b623cd
9 changed files with 10 additions and 10 deletions
|
@ -130,7 +130,7 @@ static void prepare_devfs()
|
|||
|
||||
for (size_t index = 0; index < 4; index++) {
|
||||
// FIXME: Find a better way to chown without hardcoding the gid!
|
||||
rc = chown(String::format("/dev/tty%d", index).characters(), 0, 2);
|
||||
rc = chown(String::formatted("/dev/tty{}", index).characters(), 0, 2);
|
||||
if (rc < 0) {
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ static void prepare_devfs()
|
|||
|
||||
for (size_t index = 0; index < 4; index++) {
|
||||
// FIXME: Find a better way to chown without hardcoding the gid!
|
||||
rc = chown(String::format("/dev/ttyS%d", index).characters(), 0, 2);
|
||||
rc = chown(String::formatted("/dev/ttyS{}", index).characters(), 0, 2);
|
||||
if (rc < 0) {
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue