mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 13:19:47 +00:00
LibC: Have perror() show the input string on the debugger as well
This commit is contained in:
@@ -430,7 +430,7 @@ int snprintf(char* buffer, size_t size, const char* fmt, ...)
|
||||
void perror(const char* s)
|
||||
{
|
||||
int saved_errno = errno;
|
||||
dbg() << "perror(): " << strerror(saved_errno);
|
||||
dbg() << "perror(): " << s << ": " << strerror(saved_errno);
|
||||
fprintf(stderr, "%s: %s\n", s, strerror(saved_errno));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user