Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 KASSERT() -> KASSERTMSG() message in _bus_d...



details:   https://anonhg.NetBSD.org/src/rev/3cb751c92998
branches:  trunk
changeset: 999674:3cb751c92998
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jun 14 03:35:31 2019 +0000

description:
KASSERT() -> KASSERTMSG() message in _bus_dmamem_alloc_range().

diffstat:

 sys/arch/x86/x86/bus_dma.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 93ebd0f51598 -r 3cb751c92998 sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c        Fri Jun 14 01:54:16 2019 +0000
+++ b/sys/arch/x86/x86/bus_dma.c        Fri Jun 14 03:35:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_dma.c,v 1.78 2019/04/21 06:37:21 maxv Exp $        */
+/*     $NetBSD: bus_dma.c,v 1.79 2019/06/14 03:35:31 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2007 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.78 2019/04/21 06:37:21 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.79 2019/06/14 03:35:31 mrg Exp $");
 
 /*
  * The following is included because _bus_dma_uiomove is derived from
@@ -249,7 +249,8 @@
                        segs[curseg].ds_len += PAGE_SIZE;
                } else {
                        curseg++;
-                       KASSERT(curseg < nsegs);
+                       KASSERTMSG(curseg < nsegs, "curseg %d size %llx",
+                           curseg, (long long)size);
                        segs[curseg].ds_addr = curaddr;
                        segs[curseg].ds_len = PAGE_SIZE;
                }



Home | Main Index | Thread Index | Old Index