Module Name:    src
Committed By:   dholland
Date:           Sun Dec 30 17:37:13 UTC 2012

Modified Files:
        src/lib/libutil: efun.c

Log Message:
Fix failure message for ecalloc.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libutil/efun.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libutil/efun.c
diff -u src/lib/libutil/efun.c:1.7 src/lib/libutil/efun.c:1.8
--- src/lib/libutil/efun.c:1.7	Sun Dec 30 17:36:00 2012
+++ src/lib/libutil/efun.c	Sun Dec 30 17:37:13 2012
@@ -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 @@ ecalloc(size_t n, size_t s)
 {
 	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;
 }
 

Reply via email to