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/linux KASSERT -> KASSERTMSG, to help d...
details: https://anonhg.NetBSD.org/src/rev/8fe8675a7ce4
branches: trunk
changeset: 366289:8fe8675a7ce4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 14:40:44 2018 +0000
description:
KASSERT -> KASSERTMSG, to help debug panic observed by mrg@.
diffstat:
sys/external/bsd/drm2/linux/linux_fence.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 92b973789d49 -r 8fe8675a7ce4 sys/external/bsd/drm2/linux/linux_fence.c
--- a/sys/external/bsd/drm2/linux/linux_fence.c Mon Aug 27 14:40:30 2018 +0000
+++ b/sys/external/bsd/drm2/linux/linux_fence.c Mon Aug 27 14:40:44 2018 +0000
@@ -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 @@
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))
Home |
Main Index |
Thread Index |
Old Index