Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Use KASSERTMSG in ww_acq...
details: https://anonhg.NetBSD.org/src/rev/0e5a3ce694fc
branches: trunk
changeset: 332250:0e5a3ce694fc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sat Sep 13 00:32:36 2014 +0000
description:
Use KASSERTMSG in ww_acquire_fini to show number of locks held.
diffstat:
sys/external/bsd/drm2/include/linux/ww_mutex.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r b89324ef5551 -r 0e5a3ce694fc sys/external/bsd/drm2/include/linux/ww_mutex.h
--- a/sys/external/bsd/drm2/include/linux/ww_mutex.h Fri Sep 12 21:22:13 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/ww_mutex.h Sat Sep 13 00:32:36 2014 +0000
@@ -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 @@
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. */
}
Home |
Main Index |
Thread Index |
Old Index