[PATCH] [ASan] Print mmap errno/GetLastError in a readable and consistent way

Alexey Samsonov samsonov at google.com
Tue Mar 18 03:14:02 PDT 2014



================
Comment at: lib/sanitizer_common/sanitizer_posix.cc:95
@@ -94,3 +94,3 @@
     Report("ERROR: "
-           "%s failed to allocate noreserve 0x%zx (%zd) bytes for '%s' (%d)\n",
+           "%s failed to allocate noreserve 0x%zx (%zd) bytes for '%s': %d\n",
            SanitizerToolName, size, size, mem_type, reserrno);
----------------
why not (errno: %d) on POSIX and (error code: %d) on Windows?


http://llvm-reviews.chandlerc.com/D3107



More information about the llvm-commits mailing list