diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-12 08:36:40 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-12 08:36:40 +0000 |
commit | 8f1c27babbac024a92fca48cf84581bb32e108b0 (patch) | |
tree | 1f3a0ead05203fdb6b856f89b8d52eddf58fad14 /Source/lib/utils/logger.c | |
parent | b5cb0210f7b4672cd1c9e51a5ae6943fcc25331f (diff) | |
download | strongswan-8f1c27babbac024a92fca48cf84581bb32e108b0.tar.bz2 strongswan-8f1c27babbac024a92fca48cf84581bb32e108b0.tar.xz |
- fixed bad bugs in kernel interface
- added some logging info
- works now much more stable
Diffstat (limited to 'Source/lib/utils/logger.c')
-rw-r--r-- | Source/lib/utils/logger.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |