mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +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
|
@ -44,7 +44,7 @@ static off_t find_seek_pos(Core::File& file, int wanted_lines)
|
|||
// stopping when we've found the number of lines we want.
|
||||
off_t pos = 0;
|
||||
if (!file.seek(0, Core::SeekMode::FromEndPosition, &pos)) {
|
||||
fprintf(stderr, "Failed to find end of file: %s\n", file.error_string());
|
||||
warnln("Failed to find end of file: {}", file.error_string());
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ int main(int argc, char* argv[])
|
|||
|
||||
auto f = Core::File::construct(file);
|
||||
if (!f->open(Core::OpenMode::ReadOnly)) {
|
||||
fprintf(stderr, "Error opening file %s: %s\n", file, strerror(errno));
|
||||
warnln("Failed to open {}: {}", f->name(), f->error_string());
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue