Module Name:    src
Committed By:   christos
Date:           Tue Dec 24 15:42:56 UTC 2013

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

Log Message:
use __func__


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 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.70 src/sys/arch/x86/x86/bus_dma.c:1.71
--- src/sys/arch/x86/x86/bus_dma.c:1.70	Tue Jul  2 18:39:45 2013
+++ src/sys/arch/x86/x86/bus_dma.c	Tue Dec 24 10:42:56 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: bus_dma.c,v 1.70 2013/07/02 22:39:45 christos Exp $	*/
+/*	$NetBSD: bus_dma.c,v 1.71 2013/12/24 15:42:56 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.70 2013/07/02 22:39:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.71 2013/12/24 15:42:56 christos Exp $");
 
 /*
  * The following is included because _bus_dma_uiomove is derived from
@@ -802,11 +802,11 @@ _bus_dmamap_sync(bus_dma_tag_t t, bus_dm
 #ifdef DIAGNOSTIC
 	if ((ops & (BUS_DMASYNC_PREWRITE|BUS_DMASYNC_POSTREAD)) != 0) {
 		if (offset >= map->dm_mapsize)
-			panic("_bus_dmamap_sync: bad offset 0x%jx >= 0x%jx",
+			panic("%s: bad offset 0x%jx >= 0x%jx", __func__,
 			(intmax_t)offset, (intmax_t)map->dm_mapsize);
 		if ((offset + len) > map->dm_mapsize)
-			panic("_bus_dmamap_sync: bad length 0x%jx + 0x%jx "
-			    "> 0x%jx", (intmax_t)offset, (intmax_t)len,
+			panic("%s: bad length 0x%jx + 0x%jx > 0x%jx", __func__,
+			    (intmax_t)offset, (intmax_t)len,
 			    (intmax_t)map->dm_mapsize);
 	}
 #endif

Reply via email to