From f5c35fccca3394ae54647d89a160d599f4a74f04 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 31 May 2021 15:43:25 +0100 Subject: Userland: Replace most printf-style APIs with AK::Format APIs :^) --- Userland/Utilities/kill.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Utilities/kill.cpp') 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] \n"); + warnln("usage: kill [-signal] "); 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(); -- cgit v1.2.3