Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm KASSERT -> KASSERTMSG so we actually display the ove...



details:   https://anonhg.NetBSD.org/src/rev/7a3d2f1b99a0
branches:  trunk
changeset: 964628:7a3d2f1b99a0
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Aug 10 01:06:45 2019 +0000

description:
KASSERT -> KASSERTMSG so we actually display the overflowed values.

diffstat:

 sys/uvm/uvm_map.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 8ee5dfce0bda -r 7a3d2f1b99a0 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Sat Aug 10 01:04:05 2019 +0000
+++ b/sys/uvm/uvm_map.c Sat Aug 10 01:06:45 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_map.c,v 1.363 2019/08/01 02:28:55 riastradh Exp $  */
+/*     $NetBSD: uvm_map.c,v 1.364 2019/08/10 01:06:45 mrg Exp $        */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.363 2019/08/01 02:28:55 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.364 2019/08/10 01:06:45 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -4730,7 +4730,9 @@
        struct vm_map_entry *dead_entries;
        UVMHIST_FUNC("uvm_unmap"); UVMHIST_CALLED(maphist);
 
-       KASSERT(start < end);
+       KASSERTMSG(start < end,
+           "%s: map %p: start %#jx < end %#jx", __func__, map,
+           (uintmax_t)start, (uintmax_t)end);
        UVMHIST_LOG(maphist, "  (map=%#jx, start=%#jx, end=%#jx)",
            (uintptr_t)map, start, end, 0);
        if (map == kernel_map) {



Home | Main Index | Thread Index | Old Index