Log worker thread ID with two digits.

This commit is contained in:
Tobias Brunner 2011-12-16 14:40:57 +01:00
parent c27e54a716
commit b24287c269

View File

@ -102,7 +102,7 @@ static void restart(private_processor_t *this)
{
thread_t *thread;
DBG2(DBG_JOB, "terminated worker thread, ID: %u", thread_current_id());
DBG2(DBG_JOB, "terminated worker thread %.2u", thread_current_id());
/* respawn thread if required */
this->mutex->lock(this->mutex);
@ -152,7 +152,7 @@ static void process_jobs(private_processor_t *this)
/* worker threads are not cancellable by default */
thread_cancelability(FALSE);
DBG2(DBG_JOB, "started worker thread, ID: %u", thread_current_id());
DBG2(DBG_JOB, "started worker thread %.2u", thread_current_id());
this->mutex->lock(this->mutex);
while (this->desired_threads >= this->total_threads)