Properly check if td_name is empty and if it is, print process name,
instead of empty thread name. Reviewed by: jhb
This commit is contained in:
parent
a1d73f7b59
commit
7224dd4dad
@ -1131,8 +1131,8 @@ DB_SHOW_COMMAND(sleepq, db_show_sleepqueue)
|
||||
td_slpq) {
|
||||
db_printf("\t%p (tid %d, pid %d, \"%s\")\n", td,
|
||||
td->td_tid, td->td_proc->p_pid,
|
||||
td->td_name[i] != '\0' ? td->td_name :
|
||||
td->td_name);
|
||||
td->td_name[0] != '\0' ? td->td_name :
|
||||
td->td_proc->p_comm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user