mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
AK: Don't add newline for outf/dbgf/warnf.
In the future all (normal) output should be written by any of the
following functions:
out (currently called new_out)
outln
dbg (currently called new_dbg)
dbgln
warn (currently called new_warn)
warnln
However, there are still a ton of uses of the old out/warn/dbg in the
code base so the new functions are called new_out/new_warn/new_dbg. I am
going to rename them as soon as all the other usages are gone (this
might take a while.)
I also added raw_out/raw_dbg/raw_warn which don't do any escaping,
this should be useful if no formatting is required and if the input
contains tons of curly braces. (I am not entirely sure if this function
will stay, but I am adding it for now.)
This commit is contained in:
parent
4237089a21
commit
d5ffb51a83
Notes:
sideshowbarker
2024-07-19 02:04:25 +09:00
Author: https://github.com/asynts
Commit: d5ffb51a83
Pull-request: https://github.com/SerenityOS/serenity/pull/3680
16 changed files with 202 additions and 96 deletions
|
|
@ -1414,11 +1414,11 @@ void Shell::notify_child_event()
|
|||
|
||||
int wstatus = 0;
|
||||
#ifdef SH_DEBUG
|
||||
dbgf("waitpid({}) = ...", job.pid());
|
||||
dbgln("waitpid({}) = ...", job.pid());
|
||||
#endif
|
||||
auto child_pid = waitpid(job.pid(), &wstatus, WNOHANG | WUNTRACED);
|
||||
#ifdef SH_DEBUG
|
||||
dbgf("... = {} - {}", child_pid, wstatus);
|
||||
dbgln("... = {} - {}", child_pid, wstatus);
|
||||
#endif
|
||||
|
||||
if (child_pid < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue