]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Report the error number when a UME mmap fails.
authorTom Hughes <tom@compton.nu>
Sun, 21 May 2006 13:41:17 +0000 (13:41 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 21 May 2006 13:41:17 +0000 (13:41 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5911

coregrind/m_ume.c

index 328bae1a622f64ea1944a591d883592d151014d9..546ca496cff90e01653c1845954ed0820e5d5345 100644 (file)
@@ -71,8 +71,8 @@ struct elfinfo
 static void check_mmap(SysRes res, Addr base, SizeT len)
 {
    if (res.isError) {
-      VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME.\n", 
-                  (ULong)base, (Long)len);
+      VG_(printf)("valgrind: mmap(0x%llx, %lld) failed in UME with error %d.\n", 
+                  (ULong)base, (Long)len, res.val);
       VG_(exit)(1);
    }
 }