From 8fda897a24f2c2bacb0b2aaaba1e02004c22e65e Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 10 Aug 2019 01:06:45 +0000 Subject: [PATCH] KASSERT -> KASSERTMSG so we actually display the overflowed values. --- sys/uvm/uvm_map.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 7a843f7353c3..116fec03d0b6 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -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 -__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 @@ uvm_unmap1(struct vm_map *map, vaddr_t start, vaddr_t end, int flags) 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) {