From 7fa3033ca817f6a8dda88a7fe091d9c61cd7b1aa Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 30 May 2021 14:07:43 +0100 Subject: [PATCH] WebServer: Replace printf()/fprintf(stderr) with outln()/warnln() --- Userland/Services/WebServer/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Services/WebServer/main.cpp b/Userland/Services/WebServer/main.cpp index 69f1226c59..e050424cb7 100644 --- a/Userland/Services/WebServer/main.cpp +++ b/Userland/Services/WebServer/main.cpp @@ -35,14 +35,14 @@ int main(int argc, char** argv) } if ((u16)port != port) { - printf("Warning: invalid port number: %d\n", port); + outln("Warning: Invalid port number: {}", port); port = default_port; } auto real_root_path = Core::File::real_path_for(root_path); if (!Core::File::exists(real_root_path)) { - fprintf(stderr, "Root path does not exist: '%s'\n", root_path); + warnln("Root path does not exist: '{}'", root_path); return 1; }