From 268a79bdf0e62fbdb66911f45c96f6a25be964d7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 21 May 2006 13:41:17 +0000 Subject: [PATCH] Report the error number when a UME mmap fails. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5911 --- coregrind/m_ume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coregrind/m_ume.c b/coregrind/m_ume.c index 328bae1a6..546ca496c 100644 --- a/coregrind/m_ume.c +++ b/coregrind/m_ume.c @@ -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); } }