mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +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
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ int execvpe(const char* filename, char* const argv[], char* const envp[])
|
|||
int rc = execve(candidate.characters(), argv, envp);
|
||||
if (rc < 0 && errno != ENOENT) {
|
||||
errno_rollback.set_override_rollback_value(errno);
|
||||
dbg() << "execvpe() failed on attempt (" << candidate << ") with " << strerror(errno);
|
||||
dbgln("execvpe() failed on attempt ({}) with {}", candidate, strerror(errno));
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ int execvp(const char* filename, char* const argv[])
|
|||
{
|
||||
int rc = execvpe(filename, argv, environ);
|
||||
int saved_errno = errno;
|
||||
dbg() << "execvp() about to return " << rc << " with errno=" << saved_errno;
|
||||
dbgln("execvp() about to return {} with errno={}", rc, saved_errno);
|
||||
errno = saved_errno;
|
||||
return rc;
|
||||
}
|
||||
|
@ -708,7 +708,7 @@ ssize_t pread(int fd, void* buf, size_t count, off_t offset)
|
|||
|
||||
char* getpass(const char* prompt)
|
||||
{
|
||||
dbg() << "FIXME: getpass(\"" << prompt << "\")";
|
||||
dbgln("FIXME: getpass('{}')", prompt);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue