freebsd_network: Print the taskqueue name in the timeout KASSERT.

Should help with diagnosing #17634.
This commit is contained in:
Augustin Cavalier 2022-03-09 17:10:10 -05:00
parent 45f4882a72
commit 49fd143d15

View File

@ -357,7 +357,8 @@ taskqueue_timeout_func(void *arg)
timeout_task = arg;
queue = timeout_task->q;
KASSERT((timeout_task->f & DT_CALLOUT_ARMED) != 0, ("Stray timeout"));
KASSERT((timeout_task->f & DT_CALLOUT_ARMED) != 0,
("stray timeout ('%s')", timeout_task->q->tq_name));
timeout_task->f &= ~DT_CALLOUT_ARMED;
queue->tq_callouts--;
taskqueue_enqueue_locked(timeout_task->q, &timeout_task->t, status);