aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/threads/thread_pool.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-05-18 06:02:28 +0000
committerMartin Willi <martin@strongswan.org>2006-05-18 06:02:28 +0000
commitb5e1560659f9e7e74299077c1456c29065dbb4c9 (patch)
tree40b8e86f26c2879166e6a05b86e682b0eafcd893 /src/charon/threads/thread_pool.c
parent1e93135408e9810cc10b2b10395b508d687bc819 (diff)
downloadstrongswan-b5e1560659f9e7e74299077c1456c29065dbb4c9.tar.bz2
strongswan-b5e1560659f9e7e74299077c1456c29065dbb4c9.tar.xz
- applied andreas's patch
- logger output improvements - testin gupdates - and a lot more
Diffstat (limited to 'src/charon/threads/thread_pool.c')
-rw-r--r--src/charon/threads/thread_pool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/threads/thread_pool.c b/src/charon/threads/thread_pool.c
index 4482e795f..0a39c2e9e 100644
--- a/src/charon/threads/thread_pool.c
+++ b/src/charon/threads/thread_pool.c
@@ -144,7 +144,7 @@ static void process_jobs(private_thread_pool_t *this)
/* cancellation disabled by default */
pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
- this->worker_logger->log(this->worker_logger, CONTROL, "Worker thread running, thread_id: %u", (int)pthread_self());
+ this->worker_logger->log(this->worker_logger, CONTROL, "worker thread running, thread_ID: %06d", (int)pthread_self());
for (;;) {
@@ -600,7 +600,7 @@ thread_pool_t *thread_pool_create(size_t pool_size)
{
if (pthread_create(&(this->threads[current]), NULL, (void*(*)(void*))this->process_jobs, this) == 0)
{
- this->pool_logger->log(this->pool_logger, CONTROL, "Created worker thread #%d", current+1);
+ this->pool_logger->log(this->pool_logger, CONTROL, "created worker thread #%d", current+1);
}
else
{