]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Log worker thread ID with two digits.
authorTobias Brunner <tobias@strongswan.org>
Fri, 16 Dec 2011 13:40:57 +0000 (14:40 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 16 Dec 2011 15:44:38 +0000 (16:44 +0100)
src/libstrongswan/processing/processor.c

index 18af2383ad15c20be755b90e8ad5b89dce575758..222f1a5355e56ac20ceb99de6576792565954119 100644 (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)