Improve panic message by specifying on which cpu it really is.

This commit is contained in:
Andrey A. Chernov 2016-05-22 15:22:45 +00:00
parent 57d2ac2f90
commit 23b26e530d

View File

@ -126,7 +126,7 @@ set_cpu(int cpu, struct thread *td)
sched_bind(td, cpu);
thread_unlock(td);
KASSERT(td->td_oncpu == cpu,
("[cpuctl,%d]: cannot bind to target cpu %d", __LINE__, cpu));
("[cpuctl,%d]: cannot bind to target cpu %d on cpu %d", __LINE__, cpu, td->td_oncpu));
}
static void