diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-02-06 22:30:38 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-02-06 22:30:38 +0000 |
commit | 62688407cbb3e8db6cf683046989deac42e3058e (patch) | |
tree | 5e67c5b7ef8be8f8b4e993be7fa1ff3cfab25523 /winsup/cygserver/bsd_helper.cc | |
parent | 93591f420010b0136ac55789a38b356772a13c17 (diff) | |
download | cygnal-62688407cbb3e8db6cf683046989deac42e3058e.tar.gz cygnal-62688407cbb3e8db6cf683046989deac42e3058e.tar.bz2 cygnal-62688407cbb3e8db6cf683046989deac42e3058e.zip |
* bsd_helper.cc: Replace %E __small_printf format specifier with %lu
and call to GetLastError throughout.
* bsd_mutex.cc: Ditto.
* sysv_sem.cc (semget): Replace %X __small_printf format specifier
with %llx.
Diffstat (limited to 'winsup/cygserver/bsd_helper.cc')
-rw-r--r-- | winsup/cygserver/bsd_helper.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygserver/bsd_helper.cc b/winsup/cygserver/bsd_helper.cc index 9c6b191c1..a137b7ea6 100644 --- a/winsup/cygserver/bsd_helper.cc +++ b/winsup/cygserver/bsd_helper.cc @@ -451,7 +451,7 @@ _vm_pager_allocate (int size, int shmflg) vm_object_t object = CreateFileMapping (INVALID_HANDLE_VALUE, &sec_all_nih, PAGE_READWRITE, 0, size, NULL); if (!object) - panic ("CreateFileMapping in _vm_pager_allocate failed, %E"); + panic ("CreateFileMapping in _vm_pager_allocate failed, %lu", GetLastError ()); return object; } @@ -462,7 +462,7 @@ vm_object_duplicate (struct thread *td, vm_object_t object) if (!DuplicateHandle (GetCurrentProcess (), object, td->client->handle (), &dup_object, 0, TRUE, DUPLICATE_SAME_ACCESS)) - panic ("!DuplicateHandle in vm_object_duplicate failed, %E"); + panic ("!DuplicateHandle in vm_object_duplicate failed, %lu", GetLastError ()); return dup_object; } |