Module Name:    src
Committed By:   riastradh
Date:           Sat Sep 13 00:32:36 UTC 2014

Modified Files:
        src/sys/external/bsd/drm2/include/linux: ww_mutex.h

Log Message:
Use KASSERTMSG in ww_acquire_fini to show number of locks held.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/include/linux/ww_mutex.h

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

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/ww_mutex.h
diff -u src/sys/external/bsd/drm2/include/linux/ww_mutex.h:1.4 src/sys/external/bsd/drm2/include/linux/ww_mutex.h:1.5
--- src/sys/external/bsd/drm2/include/linux/ww_mutex.h:1.4	Sat Jul 26 21:36:40 2014
+++ src/sys/external/bsd/drm2/include/linux/ww_mutex.h	Sat Sep 13 00:32:36 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: ww_mutex.h,v 1.4 2014/07/26 21:36:40 riastradh Exp $	*/
+/*	$NetBSD: ww_mutex.h,v 1.5 2014/09/13 00:32:36 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -119,7 +119,8 @@ static inline void
 ww_acquire_fini(struct ww_acquire_ctx *ctx)
 {
 
-	KASSERT(ctx->wwx_acquired == 0);
+	KASSERTMSG((ctx->wwx_acquired == 0), "ctx %p still holds %u locks",
+	    ctx, ctx->wwx_acquired);
 	ctx->wwx_acquired = ~0U;	/* Fail if called again. */
 }
 

Reply via email to