aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_resource.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index b703c31b07ea..d0a8f5805228 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -722,7 +722,8 @@ calcru(p, up, sp)
* greater than the precision of binuptime().
*/
KASSERT(td->td_oncpu != NOCPU,
- ("%s: running thread has no CPU", __func__));
+ ("%s: running thread has no CPU pid: %d, tid %d",
+ __func__, p->p_pid, td->td_tid));
if (!bt_valid) {
binuptime(&bt);
bt_valid = 1;