WebServer: Replace printf()/fprintf(stderr) with outln()/warnln()

This commit is contained in:
Linus Groh 2021-05-30 14:07:43 +01:00
parent 5d80aab038
commit 7fa3033ca8
Notes: sideshowbarker 2024-07-18 17:10:25 +09:00

View file

@ -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;
}