mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 16:49:54 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
510030971b
commit
a410bb8fd5
Notes:
sideshowbarker
2024-07-18 23:55:33 +09:00
Author: https://github.com/asynts
Commit: a410bb8fd5
Pull-request: https://github.com/SerenityOS/serenity/pull/4907
7 changed files with 28 additions and 29 deletions
|
@ -953,8 +953,8 @@ int snprintf(char* buffer, size_t size, const char* fmt, ...)
|
|||
void perror(const char* s)
|
||||
{
|
||||
int saved_errno = errno;
|
||||
dbg() << "perror(): " << s << ": " << strerror(saved_errno);
|
||||
fprintf(stderr, "%s: %s\n", s, strerror(saved_errno));
|
||||
dbgln("perror(): {}: {}", s, strerror(saved_errno));
|
||||
warnln("{}: {}", s, strerror(saved_errno));
|
||||
}
|
||||
|
||||
static int parse_mode(const char* mode)
|
||||
|
@ -987,7 +987,7 @@ static int parse_mode(const char* mode)
|
|||
// Ok...
|
||||
break;
|
||||
default:
|
||||
dbg() << "Potentially unsupported fopen mode _" << mode << "_ (because of '" << *ptr << "')";
|
||||
dbgln("Potentially unsupported fopen mode _{}_ (because of '{}')", mode, *ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue