mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibC: Have perror() show the input string on the debugger as well
This commit is contained in:
parent
6242459c0f
commit
14f0a5943b
Notes:
sideshowbarker
2024-07-19 11:43:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/14f0a5943b1
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue