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

Timur Iskhodzhanov timurrrr at google.com
Tue Mar 18 03:13:52 PDT 2014


Works for me if extra chars are OK
18 марта 2014 г. 14:13 пользователь "Alexey Samsonov" <samsonov at google.com>
написал:

>
>
> ================
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140318/a72dbdaa/attachment.html>


More information about the llvm-commits mailing list