mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
Userland: Replace most printf-style APIs with AK::Format APIs :^)
This commit is contained in:
parent
4f1889c2cb
commit
f5c35fccca
Notes:
sideshowbarker
2024-07-18 17:02:37 +09:00
Author: https://github.com/linusg
Commit: f5c35fccca
Pull-request: https://github.com/SerenityOS/serenity/pull/7632
Reviewed-by: https://github.com/awesomekling
75 changed files with 642 additions and 644 deletions
|
@ -249,7 +249,7 @@ int main(int argc, char** argv)
|
|||
if (do_use_io_instruction || do_all_crash_types) {
|
||||
Crash("Attempt to use an I/O instruction", [] {
|
||||
u8 keyboard_status = IO::in8(0x64);
|
||||
printf("Keyboard status: %#02x\n", keyboard_status);
|
||||
outln("Keyboard status: {:#02x}", keyboard_status);
|
||||
return Crash::Failure::DidNotCrash;
|
||||
}).run(run_type);
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ int main(int argc, char** argv)
|
|||
perror("pledge");
|
||||
return Crash::Failure::DidNotCrash;
|
||||
}
|
||||
printf("Didn't pledge 'stdio', this should fail!\n");
|
||||
outln("Didn't pledge 'stdio', this should fail!");
|
||||
return Crash::Failure::DidNotCrash;
|
||||
}).run(run_type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue