소스 검색

LibC: Have perror() show the input string on the debugger as well

Andreas Kling 5 년 전
부모
커밋
14f0a5943b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libraries/LibC/stdio.cpp

+ 1 - 1
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));
 }