Source-Changes-HG archive

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

[src/trunk]: src/sys/kern - fix typo in comment



details:   https://anonhg.NetBSD.org/src/rev/c0d92b8e908f
branches:  trunk
changeset: 780710:c0d92b8e908f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 04 12:38:20 2012 +0000

description:
- fix typo in comment
- Don't call abort1 with NULL ld, after panic(9).

diffstat:

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

diffs (35 lines):

diff -r 2ca40514d259 -r c0d92b8e908f sys/kern/subr_lockdebug.c
--- a/sys/kern/subr_lockdebug.c Sat Aug 04 12:33:23 2012 +0000
+++ b/sys/kern/subr_lockdebug.c Sat Aug 04 12:38:20 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_lockdebug.c,v 1.45 2011/07/26 13:07:20 yamt Exp $ */
+/*     $NetBSD: subr_lockdebug.c,v 1.46 2012/08/04 12:38:20 christos Exp $     */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.45 2011/07/26 13:07:20 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.46 2012/08/04 12:38:20 christos Exp $");
 
 #include "opt_ddb.h"
 
@@ -325,7 +325,6 @@
                __cpu_simple_unlock(&ld_mod_lk);
                panic("lockdebug_free: destroying uninitialized object %p"
                    "(ld_lock=%p)", lock, ld->ld_lock);
-               lockdebug_abort1(ld, s, __func__, "record follows", true);
                return;
        }
        if ((ld->ld_flags & LD_LOCKED) != 0 || ld->ld_shares != 0) {
@@ -764,7 +763,7 @@
 {
 
        /*
-        * Don't make the situation wose if the system is already going
+        * Don't make the situation worse if the system is already going
         * down in flames.  Once a panic is triggered, lockdebug state
         * becomes stale and cannot be trusted.
         */



Home | Main Index | Thread Index | Old Index