From: Tobias Brunner Date: Fri, 16 Dec 2011 13:40:57 +0000 (+0100) Subject: Log worker thread ID with two digits. X-Git-Tag: 4.6.2~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b24287c2693e681c33a6a3f11455cbf604f218b0;p=thirdparty%2Fstrongswan.git Log worker thread ID with two digits. --- diff --git a/src/libstrongswan/processing/processor.c b/src/libstrongswan/processing/processor.c index 18af2383ad..222f1a5355 100644 --- a/src/libstrongswan/processing/processor.c +++ b/src/libstrongswan/processing/processor.c @@ -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)