mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:47:44 +00:00
Userland: Replace most printf-style APIs with AK::Format APIs :^)
This commit is contained in:
parent
4f1889c2cb
commit
f5c35fccca
75 changed files with 642 additions and 644 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -30,7 +30,7 @@ int main(int argc, char** argv)
|
|||
args_parser.parse(argc, argv);
|
||||
|
||||
if (!Core::File::exists(path)) {
|
||||
fprintf(stderr, "File does not exist: '%s'\n", path);
|
||||
warnln("File does not exist: '{}'", path);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto value = config->read_entry(group, key);
|
||||
if (!value.is_empty())
|
||||
printf("%s\n", value.characters());
|
||||
outln("{}", value);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue