- logging cleanup

- pid re-replaced with thread_ids, since nptl does not distinguish pids between threads
This commit is contained in:
Martin Willi
2005-12-04 11:46:58 +00:00
parent 26cfe75e4d
commit 25c41f4df7
15 changed files with 87 additions and 71 deletions
+1 -2
View File
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include "receiver.h"
@@ -74,7 +73,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, pid %d", getpid());
this->logger->log(this->logger, CONTROL, "receiver thread running, thread_id %u", (int)pthread_self());
while (1)
{