summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/mmap.cc5
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c8087856f..d0cf692b4 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-21 Corinna Vinschen <corinna@vinschen.de>
+
+ * mmap.cc (MapView): Add NT status to debug output.
+
2008-11-11 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (GetSystemDEPPolicy): Define.
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 4616410ec..53e552368 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -221,8 +221,9 @@ MapView (HANDLE h, void *addr, size_t len, DWORD openflags,
base = NULL;
SetLastError (RtlNtStatusToDosError (ret));
}
- debug_printf ("%x = NtMapViewOfSection (h:%x, addr:%x, len:%u, off:%D, "
- "protect:%x, type:%x)", base, h, addr, len, off, protect, 0);
+ debug_printf ("%p (status %p) = NtMapViewOfSection (h:%x, addr:%x, len:%u,"
+ " off:%X, protect:%x, type:%x)",
+ base, ret, h, addr, len, off, protect, 0);
return base;
}