Lines 1-5
Link Here
|
1 |
--- srcold/libcharon/bus/listeners/sys_logger.c 2011-03-10 20:50:01.000000000 +0200 |
1 |
--- src/libcharon/bus/listeners/sys_logger.c-orig 2011-09-02 19:33:54.000000000 +0200 |
2 |
+++ src/libcharon/bus/listeners/sys_logger.c 2011-03-10 20:53:59.000000000 +0200 |
2 |
+++ src/libcharon/bus/listeners/sys_logger.c 2011-09-02 19:38:59.000000000 +0200 |
3 |
@@ -79,13 +79,15 @@ |
3 |
@@ -79,13 +79,15 @@ |
4 |
/* do a syslog with every line */ |
4 |
/* do a syslog with every line */ |
5 |
while (current) |
5 |
while (current) |
Lines 10-18
Link Here
|
10 |
{ |
10 |
{ |
11 |
*(next++) = '\0'; |
11 |
*(next++) = '\0'; |
12 |
} |
12 |
} |
13 |
- syslog(this->facility|LOG_INFO, "%.2d[%N]%s %s\n", |
13 |
- syslog(this->facility|LOG_INFO, "%.2d[%s]%s %s\n", |
14 |
+ snprintf(tmp, 8192, "%.2d[%N]%s %s\n", |
14 |
+ snprintf(tmp, 8192, "%.2d[%s]%s %s\n", |
15 |
thread, debug_names, group, namestr, current); |
15 |
thread, groupstr, namestr, current); |
16 |
+ syslog(this->facility|LOG_INFO, tmp); |
16 |
+ syslog(this->facility|LOG_INFO, tmp); |
17 |
current = next; |
17 |
current = next; |
18 |
} |
18 |
} |