Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm let user know current value of MAX_KMAPENT in panic



details:   https://anonhg.NetBSD.org/src/rev/64e6488cfe74
branches:  trunk
changeset: 514635:64e6488cfe74
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Sep 07 00:50:54 2001 +0000

description:
let user know current value of MAX_KMAPENT in panic

diffstat:

 sys/uvm/uvm_map.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 1bb056f6218b -r 64e6488cfe74 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Fri Sep 07 00:18:27 2001 +0000
+++ b/sys/uvm/uvm_map.c Fri Sep 07 00:50:54 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.102 2001/08/20 12:20:08 wiz Exp $        */
+/*     $NetBSD: uvm_map.c,v 1.103 2001/09/07 00:50:54 lukem Exp $      */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -218,7 +218,9 @@
                simple_unlock(&uvm.kentry_lock);
                splx(s);
                if (!me)
-       panic("mapent_alloc: out of static map entries, check MAX_KMAPENT");
+                       panic(
+    "mapent_alloc: out of static map entries, check MAX_KMAPENT (currently %d)",
+       MAX_KMAPENT);
                me->flags = UVM_MAP_STATIC;
        }
 



Home | Main Index | Thread Index | Old Index