From: Neil Booth Date: Sun, 3 Mar 2002 21:57:57 +0000 (+0000) Subject: * xmalloc.c (xmalloc_fail): Clarify error message. X-Git-Tag: prereleases/libstdc++-3.0.97~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8d7c3c3e359fcb00d2d9d98fd0db38676f51b7e;p=thirdparty%2Fgcc.git * xmalloc.c (xmalloc_fail): Clarify error message. From-SVN: r50265 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5c9334711cc2..0cc30bd4f70e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2002-03-03 Neil Booth + + * xmalloc.c (xmalloc_fail): Clarify error message. + 2002-02-22 Jim Blandy * splay-tree.c (splay_tree_xmalloc_allocate, diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c index bf0cf2d6ed4d..433fd5ce3f3e 100644 --- a/libiberty/xmalloc.c +++ b/libiberty/xmalloc.c @@ -120,12 +120,12 @@ xmalloc_failed (size) else allocated = (char *) sbrk (0) - (char *) &environ; fprintf (stderr, - "\n%s%sCannot allocate %lu bytes after allocating %lu bytes\n", + "\n%s%sout of memory allocating %lu bytes after allocating %lu bytes\n", name, *name ? ": " : "", (unsigned long) size, (unsigned long) allocated); #else /* HAVE_SBRK */ fprintf (stderr, - "\n%s%sCannot allocate %lu bytes\n", + "\n%s%sout of memory allocating %lu bytes\n", name, *name ? ": " : "", (unsigned long) size); #endif /* HAVE_SBRK */