made thread ids unsigned again, to avoid negative thread ids on some systems
authorMartin Willi <martin@strongswan.org>
Tue, 4 Jul 2006 13:30:49 +0000 (13:30 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 4 Jul 2006 13:30:49 +0000 (13:30 -0000)
src/charon/threads/receiver.c
src/charon/threads/scheduler.c
src/charon/threads/sender.c
src/charon/threads/thread_pool.c

index 5986577..1e5ac38 100644 (file)
@@ -74,7 +74,7 @@ static void receive_packets(private_receiver_t * this)
        /* cancellation disabled by default */
        pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
        
-       this->logger->log(this->logger, CONTROL, "receiver thread running,  thread_ID: %06d", (int)pthread_self());
+       this->logger->log(this->logger, CONTROL, "receiver thread running,  thread_ID: %06u", (int)pthread_self());
        
        while (1)
        {
index 9bbe5c9..d5feb60 100644 (file)
@@ -72,7 +72,7 @@ static void get_events(private_scheduler_t * this)
        /* cancellation disabled by default */
        pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
        
-       this->logger->log(this->logger, CONTROL, "scheduler thread running, thread_ID: %06d", (int)pthread_self());
+       this->logger->log(this->logger, CONTROL, "scheduler thread running, thread_ID: %06u", (int)pthread_self());
 
        for (;;)
        {
index 4f5f7e1..6619c83 100644 (file)
@@ -73,7 +73,7 @@ static void send_packets(private_sender_t * this)
        /* cancellation disabled by default */
        pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);
 
-       this->logger->log(this->logger, CONTROL, "sender thread running,    thread_ID: %06d", (int)pthread_self());
+       this->logger->log(this->logger, CONTROL, "sender thread running,    thread_ID: %06u", (int)pthread_self());
 
        while (1)
        {
index 4e33e88..f102c13 100644 (file)
@@ -75,7 +75,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: %06d", (int)pthread_self());
+       this->worker_logger->log(this->worker_logger, CONTROL, "worker thread running,    thread_ID: %06u", (int)pthread_self());
        
        while (TRUE)
        {