diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-12 14:47:06 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-12 14:47:06 +0200 |
commit | 14f0a5943b16345237c63bb932cdb9af5c85dd1d (patch) | |
tree | 293e0e9f587a12783fd4d4d60cb24e4e4e5277ea /Libraries/LibC | |
parent | 6242459c0f759b88fcd380d9342ead8dfc7acebc (diff) | |
download | serenity-14f0a5943b16345237c63bb932cdb9af5c85dd1d.zip |
LibC: Have perror() show the input string on the debugger as well
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/stdio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibC/stdio.cpp b/Libraries/LibC/stdio.cpp index c6cbddd4db..3da19ac12f 100644 --- a/Libraries/LibC/stdio.cpp +++ b/Libraries/LibC/stdio.cpp @@ -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)); } |