* 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.
This commit is contained in:
Corinna Vinschen
2008-02-06 22:30:38 +00:00
parent 93591f4200
commit 62688407cb
4 changed files with 21 additions and 11 deletions

View File

@ -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;
}