diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-31 15:43:25 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-01 21:30:16 +0100 |
commit | f5c35fccca3394ae54647d89a160d599f4a74f04 (patch) | |
tree | 5daf1ac703d28877439d0de00bcd54091cd02e5e /Userland/Utilities/kill.cpp | |
parent | 4f1889c2cb5273800499550082af48df7e8c022f (diff) | |
download | serenity-f5c35fccca3394ae54647d89a160d599f4a74f04.zip |
Userland: Replace most printf-style APIs with AK::Format APIs :^)
Diffstat (limited to 'Userland/Utilities/kill.cpp')
-rw-r--r-- | Userland/Utilities/kill.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/kill.cpp b/Userland/Utilities/kill.cpp index 28865c1871..01e4d22901 100644 --- a/Userland/Utilities/kill.cpp +++ b/Userland/Utilities/kill.cpp @@ -15,7 +15,7 @@ static void print_usage_and_exit() { - printf("usage: kill [-signal] <PID>\n"); + warnln("usage: kill [-signal] <PID>"); exit(1); } @@ -57,14 +57,14 @@ int main(int argc, char** argv) number = StringView(&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(); } auto pid_opt = String(argv[pid_argi]).to_int(); if (!pid_opt.has_value()) { - printf("'%s' is not a valid PID\n", argv[pid_argi]); + warnln("'{}' is not a valid PID", argv[pid_argi]); return 3; } pid_t pid = pid_opt.value(); |