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:
Pawel Jakub Dawidek 2008-07-28 18:10:26 +00:00
parent a1d73f7b59
commit 7224dd4dad

View File

@ -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);
}
}
}