Module Name:    src
Committed By:   mrg
Date:           Fri Jun 14 03:35:31 UTC 2019

Modified Files:
        src/sys/arch/x86/x86: bus_dma.c

Log Message:
KASSERT() -> KASSERTMSG() message in _bus_dmamem_alloc_range().


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/arch/x86/x86/bus_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/bus_dma.c
diff -u src/sys/arch/x86/x86/bus_dma.c:1.78 src/sys/arch/x86/x86/bus_dma.c:1.79
--- src/sys/arch/x86/x86/bus_dma.c:1.78	Sun Apr 21 06:37:21 2019
+++ src/sys/arch/x86/x86/bus_dma.c	Fri Jun 14 03:35:31 2019
@@ -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 @@ _bus_dmamem_alloc_range(bus_dma_tag_t t,
 			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;
 		}

Reply via email to