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 make a diagnostic message more informative.
details: https://anonhg.NetBSD.org/src/rev/beaa2cf33d00
branches: trunk
changeset: 787775:beaa2cf33d00
user: christos <christos%NetBSD.org@localhost>
date: Tue Jul 02 22:39:45 2013 +0000
description:
make a diagnostic message more informative.
diffstat:
sys/arch/x86/x86/bus_dma.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r cffa16e8554e -r beaa2cf33d00 sys/arch/x86/x86/bus_dma.c
--- a/sys/arch/x86/x86/bus_dma.c Tue Jul 02 20:53:10 2013 +0000
+++ b/sys/arch/x86/x86/bus_dma.c Tue Jul 02 22:39:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.69 2012/12/08 12:36:31 kiyohara Exp $ */
+/* $NetBSD: bus_dma.c,v 1.70 2013/07/02 22:39:45 christos 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.69 2012/12/08 12:36:31 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.70 2013/07/02 22:39:45 christos Exp $");
/*
* The following is included because _bus_dma_uiomove is derived from
@@ -802,9 +802,12 @@
#ifdef DIAGNOSTIC
if ((ops & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0) {
if (offset >= map->dm_mapsize)
- panic("_bus_dmamap_sync: bad offset");
+ panic("_bus_dmamap_sync: bad offset 0x%jx >= 0x%jx",
+ (intmax_t)offset, (intmax_t)map->dm_mapsize);
if ((offset + len) > map->dm_mapsize)
- panic("_bus_dmamap_sync: bad length");
+ panic("_bus_dmamap_sync: bad length 0x%jx + 0x%jx "
+ "> 0x%jx", (intmax_t)offset, (intmax_t)len,
+ (intmax_t)map->dm_mapsize);
}
#endif
Home |
Main Index |
Thread Index |
Old Index