Userland: Replace most printf-style APIs with AK::Format APIs :^)

This commit is contained in:
Linus Groh 2021-05-31 15:43:25 +01:00
commit f5c35fccca
Notes: sideshowbarker 2024-07-18 17:02:37 +09:00
75 changed files with 642 additions and 644 deletions

View file

@ -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;
}