Source-Changes-HG archive

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

[src/trunk]: src/sys/kern give the name of the dup initialization.



details:   https://anonhg.NetBSD.org/src/rev/4ac244a80b37
branches:  trunk
changeset: 754585:4ac244a80b37
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 05 02:20:42 2010 +0000

description:
give the name of the dup initialization.

diffstat:

 sys/kern/kern_malloc.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6e72c4027c2d -r 4ac244a80b37 sys/kern/kern_malloc.c
--- a/sys/kern/kern_malloc.c    Tue May 04 23:31:54 2010 +0000
+++ b/sys/kern/kern_malloc.c    Wed May 05 02:20:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_malloc.c,v 1.130 2010/04/05 08:03:42 he Exp $     */
+/*     $NetBSD: kern_malloc.c,v 1.131 2010/05/05 02:20:42 christos Exp $       */
 
 /*
  * Copyright (c) 1987, 1991, 1993
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.130 2010/04/05 08:03:42 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc.c,v 1.131 2010/05/05 02:20:42 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -812,7 +812,8 @@
                struct malloc_type *ksp;
                for (ksp = kmemstatistics; ksp != NULL; ksp = ksp->ks_next) {
                        if (ksp == type)
-                               panic("malloc_type_attach: already on list");
+                               panic("%s: `%s' already on list", __func__,
+                                   type->ks_shortdesc);
                }
        }
 #endif



Home | Main Index | Thread Index | Old Index