summaryrefslogtreecommitdiff
path: root/Userland/Services/WebServer/main.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-30 14:07:43 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-30 14:07:58 +0100
commit7fa3033ca817f6a8dda88a7fe091d9c61cd7b1aa (patch)
tree0ed701bfc7ea75138907b033f52cfaa98d4012fa /Userland/Services/WebServer/main.cpp
parent5d80aab03887d73fcec978068536400b2f587c05 (diff)
downloadserenity-7fa3033ca817f6a8dda88a7fe091d9c61cd7b1aa.zip
WebServer: Replace printf()/fprintf(stderr) with outln()/warnln()
Diffstat (limited to 'Userland/Services/WebServer/main.cpp')
-rw-r--r--Userland/Services/WebServer/main.cpp4
1 files 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;
}