tsan: fix debug output

llvm-svn: 167463
This commit is contained in:
Dmitry Vyukov 2012-11-06 15:54:34 +00:00
parent a0be3e2c68
commit e86c632015

View File

@ -79,7 +79,7 @@ void *MmapFixedNoReserve(uptr fixed_addr, uptr size) {
MAP_PRIVATE | MAP_ANON | MAP_FIXED | MAP_NORESERVE,
-1, 0);
if (p != (void*)fixed_addr)
Report("ERROR: Failed to deallocate 0x%zx (%zd) bytes at address %p (%d)\n",
Report("ERROR: Failed to allocate 0x%zx (%zd) bytes at address %p (%d)\n",
size, size, fixed_addr, errno);
return p;
}