OSDN Git Service

* pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
authorcgf <cgf>
Thu, 22 Jul 2004 18:25:52 +0000 (18:25 +0000)
committercgf <cgf>
Thu, 22 Jul 2004 18:25:52 +0000 (18:25 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index 3c4c4fc..d629ad0 100644 (file)
@@ -1,3 +1,7 @@
+2004-07-22  Christopher Faylor  <cgf@timesys.com>
+
+       * pinfo.cc (pinfo::init): Print handle in hex when MapViewOfFile fails.
+
 2004-07-20  Corinna Vinschen  <corinna@vinschen.de>
 
        * shm.cc: Whitespace fixes.
index f3a9175..dcbdf27 100644 (file)
@@ -194,7 +194,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
 
       procinfo = (_pinfo *) MapViewOfFileEx (h, access, 0, 0, 0, mapaddr);
       if (!procinfo)
-       api_fatal ("MapViewOfFileEx failed, %E");
+       api_fatal ("MapViewOfFileEx(%p) failed, %E", h);
       ProtectHandle1 (h, pinfo_shared_handle);
 
       if ((procinfo->process_state & PID_INITIALIZING) && (flag & PID_NOREDIR)