From 5d80aab03887d73fcec978068536400b2f587c05 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 30 May 2021 14:06:19 +0100 Subject: [PATCH] which: Replace printf() with outln()/warnln() --- Userland/Utilities/which.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/which.cpp b/Userland/Utilities/which.cpp index c663262fbc..cf6fa72734 100644 --- a/Userland/Utilities/which.cpp +++ b/Userland/Utilities/which.cpp @@ -24,10 +24,10 @@ int main(int argc, char** argv) auto fullpath = Core::find_executable_in_path(filename); if (fullpath.is_null()) { - printf("no '%s' in path\n", filename); + warnln("no '{}' in path", filename); return 1; } - printf("%s\n", fullpath.characters()); + outln("{}", fullpath); return 0; }