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:
asynts 2021-01-11 13:04:22 +01:00 committed by Andreas Kling
commit a410bb8fd5
Notes: sideshowbarker 2024-07-18 23:55:33 +09:00
7 changed files with 28 additions and 29 deletions

View file

@ -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);
}
}