mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:57:45 +00:00
Userland: Replace most printf-style APIs with AK::Format APIs :^)
This commit is contained in:
parent
4f1889c2cb
commit
f5c35fccca
75 changed files with 642 additions and 644 deletions
|
@ -25,10 +25,10 @@ int main(int argc, char** argv)
|
|||
perror("gethostname");
|
||||
return 1;
|
||||
}
|
||||
printf("%s\n", buffer);
|
||||
outln("{}", buffer);
|
||||
} else {
|
||||
if (strlen(hostname) >= HOST_NAME_MAX) {
|
||||
fprintf(stderr, "Hostname must be less than %i characters\n", HOST_NAME_MAX);
|
||||
warnln("Hostname must be less than {} characters", HOST_NAME_MAX);
|
||||
return 1;
|
||||
}
|
||||
sethostname(hostname, strlen(hostname));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue