* cygheap.cc (_csbrk): Report failing condition to stderr rather than strace.

This commit is contained in:
Christopher Faylor
2004-02-16 02:03:54 +00:00
parent cc9c680509
commit b4f0009fe3
3 changed files with 7 additions and 7 deletions

View File

@ -205,7 +205,8 @@ _csbrk (int sbs)
/* nothing to do */;
else if (!VirtualAlloc (prebrk, (DWORD) sbs, MEM_COMMIT, PAGE_READWRITE))
{
malloc_printf ("couldn't commit memory for cygwin heap, %E");
malloc_printf ("couldn't commit memory for cygwin heap, prebrk %p, size %d, heapsize now %d, max heap size %d, %E",
prebrk, sbs, (char *) cygheap_max - (char *) cygheap, CYGHEAPSIZE);
__seterrno ();
cygheap_max = (char *) cygheap_max - sbs;
return NULL;