Module Name: src
Committed By: riastradh
Date: Mon Aug 27 14:40:44 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/linux: linux_fence.c
Log Message:
KASSERT -> KASSERTMSG, to help debug panic observed by mrg@.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/drm2/linux/linux_fence.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/external/bsd/drm2/linux/linux_fence.c
diff -u src/sys/external/bsd/drm2/linux/linux_fence.c:1.8 src/sys/external/bsd/drm2/linux/linux_fence.c:1.9
--- src/sys/external/bsd/drm2/linux/linux_fence.c:1.8 Mon Aug 27 14:40:13 2018
+++ src/sys/external/bsd/drm2/linux/linux_fence.c Mon Aug 27 14:40:44 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_fence.c,v 1.8 2018/08/27 14:40:13 riastradh Exp $ */
+/* $NetBSD: linux_fence.c,v 1.9 2018/08/27 14:40:44 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_fence.c,v 1.8 2018/08/27 14:40:13 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_fence.c,v 1.9 2018/08/27 14:40:44 riastradh Exp $");
#include <sys/atomic.h>
#include <sys/condvar.h>
@@ -654,8 +654,8 @@ fence_default_wait(struct fence *fence,
long ret = 0;
KASSERT(fence_referenced_p(fence));
- KASSERT(timeout >= 0);
- KASSERT(timeout <= MAX_SCHEDULE_TIMEOUT);
+ KASSERTMSG(timeout >= 0, "timeout %ld", timeout);
+ KASSERTMSG(timeout <= MAX_SCHEDULE_TIMEOUT, "timeout %ld", timeout);
/* Optimistically try to skip the lock if it's already signalled. */
if (fence->flags & (1u << FENCE_FLAG_SIGNALED_BIT))