Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil Fix failure message for ecalloc.



details:   https://anonhg.NetBSD.org/src/rev/f9739469e0f8
branches:  trunk
changeset: 783583:f9739469e0f8
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Dec 30 17:37:13 2012 +0000

description:
Fix failure message for ecalloc.

diffstat:

 lib/libutil/efun.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7ef08c361340 -r f9739469e0f8 lib/libutil/efun.c
--- a/lib/libutil/efun.c        Sun Dec 30 17:36:00 2012 +0000
+++ b/lib/libutil/efun.c        Sun Dec 30 17:37:13 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: efun.c,v 1.7 2012/12/30 17:36:00 dholland Exp $        */
+/*     $NetBSD: efun.c,v 1.8 2012/12/30 17:37:13 dholland Exp $        */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: efun.c,v 1.7 2012/12/30 17:36:00 dholland Exp $");
+__RCSID("$NetBSD: efun.c,v 1.8 2012/12/30 17:37:13 dholland Exp $");
 #endif
 
 #include <err.h>
@@ -114,7 +114,7 @@
 {
        void *p = calloc(n, s);
        if (p == NULL && n != 0 && s != 0)
-               (*efunc)(1, "Cannot allocate %zu bytes", n);
+               (*efunc)(1, "Cannot allocate %zu blocks of size %zu", n, s);
        return p;
 }
 



Home | Main Index | Thread Index | Old Index