From af18e951d4952c9aa06b35ace0f65e9ac5ffa5e3 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 4 Mar 2002 21:22:52 +0000 Subject: * xmalloc.c (xmalloc_fail): Clarify error message further. From-SVN: r50287 --- libiberty/ChangeLog | 4 ++++ libiberty/xmalloc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'libiberty') diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 0cc30bd..0334c35 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2002-03-04 Neil Booth + + * xmalloc.c (xmalloc_fail): Clarify error message further. + 2002-03-03 Neil Booth * xmalloc.c (xmalloc_fail): Clarify error message. diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c index 433fd5c..4c8249a 100644 --- a/libiberty/xmalloc.c +++ b/libiberty/xmalloc.c @@ -120,7 +120,7 @@ xmalloc_failed (size) else allocated = (char *) sbrk (0) - (char *) &environ; fprintf (stderr, - "\n%s%sout of memory allocating %lu bytes after allocating %lu bytes\n", + "\n%s%sout of memory allocating %lu bytes after a total of %lu bytes\n", name, *name ? ": " : "", (unsigned long) size, (unsigned long) allocated); #else /* HAVE_SBRK */ -- cgit v1.1