mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
Userland: Replace most printf-style APIs with AK::Format APIs :^)
This commit is contained in:
parent
4f1889c2cb
commit
f5c35fccca
Notes:
sideshowbarker
2024-07-18 17:02:37 +09:00
Author: https://github.com/linusg
Commit: f5c35fccca
Pull-request: https://github.com/SerenityOS/serenity/pull/7632
Reviewed-by: https://github.com/awesomekling
75 changed files with 642 additions and 644 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
static void print_usage_and_exit()
|
||||
{
|
||||
printf("usage: killall [-signal] process_name\n");
|
||||
warnln("usage: killall [-signal] process_name");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ int main(int argc, char** argv)
|
|||
number = String(&argv[1][1]).to_uint();
|
||||
|
||||
if (!number.has_value()) {
|
||||
printf("'%s' is not a valid signal name or number\n", &argv[1][1]);
|
||||
warnln("'{}' is not a valid signal name or number", &argv[1][1]);
|
||||
return 2;
|
||||
}
|
||||
signum = number.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue