From 8f1c27babbac024a92fca48cf84581bb32e108b0 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 12 Apr 2006 08:36:40 +0000 Subject: - fixed bad bugs in kernel interface - added some logging info - works now much more stable --- Source/lib/utils/logger.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Source/lib/utils/logger.c') diff --git a/Source/lib/utils/logger.c b/Source/lib/utils/logger.c index c3888f80f..546de226b 100644 --- a/Source/lib/utils/logger.c +++ b/Source/lib/utils/logger.c @@ -124,11 +124,11 @@ static void prepend_prefix(private_logger_t *this, log_level_t loglevel, char *s if (this->log_thread_id) { - snprintf(buffer, MAX_LOG, "[%c%c] [%s] @%u %s", log_type, log_details, this->name, (int)pthread_self(), string); + snprintf(buffer, MAX_LOG, "[%c%c:%s] @%u %s", log_type, log_details, this->name, (int)pthread_self(), string); } else { - snprintf(buffer, MAX_LOG, "[%c%c] [%s] %s", log_type, log_details, this->name, string); + snprintf(buffer, MAX_LOG, "[%c%c:%s] %s", log_type, log_details, this->name, string); } } @@ -220,11 +220,11 @@ static void log_bytes(private_logger_t *this, log_level_t loglevel, char *label, buffer_pos = buffer; if (this->output == NULL) { - syslog(LOG_INFO, "[=>] [%5d] %s %s", line_start, buffer, ascii_buffer); + syslog(LOG_INFO, "[ :%5d] %s %s", line_start, buffer, ascii_buffer); } else { - fprintf(this->output, "[=>] [%5d] %s %s\n", line_start, buffer, ascii_buffer); + fprintf(this->output, "[ :%5d] %s %s\n", line_start, buffer, ascii_buffer); } memset(ascii_buffer, 0, 16); line_start += 16; @@ -257,11 +257,11 @@ static void log_bytes(private_logger_t *this, log_level_t loglevel, char *label, buffer_pos = buffer; if (this->output == NULL) { - syslog(LOG_INFO, "[=>] [%5d] %s %16s", line_start, buffer, ascii_buffer); + syslog(LOG_INFO, "[ :%5d] %s %16s", line_start, buffer, ascii_buffer); } else { - fprintf(this->output, "[=>] [%5d] %s %16s\n", line_start, buffer, ascii_buffer); + fprintf(this->output, "[ :%5d] %s %16s\n", line_start, buffer, ascii_buffer); } } pthread_mutex_unlock(&mutex); -- cgit v1.2.3