diff options
| author | phintuka <phintuka> | 2006-09-23 06:47:14 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2006-09-23 06:47:14 +0000 |
| commit | 2a865acbe4fcca23452e86f2a5a5efcef432eb31 (patch) | |
| tree | e4a2a26eff07c865f1970e6fd784df23035e42f5 | |
| parent | 7b2d15ddc2c6d646750343758885a194e7da5d71 (diff) | |
| download | xineliboutput-2a865acbe4fcca23452e86f2a5a5efcef432eb31.tar.gz xineliboutput-2a865acbe4fcca23452e86f2a5a5efcef432eb31.tar.bz2 | |
log tid
| -rw-r--r-- | xine/post.c | 2 | ||||
| -rw-r--r-- | xine_frontend.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xine/post.c b/xine/post.c index 1237c841..dcbcb35d 100644 --- a/xine/post.c +++ b/xine/post.c @@ -60,7 +60,7 @@ va_start(argp, fmt); vsnprintf(buf, 512, fmt, argp); if(!LogToSysLog) { - printf(LOG_MODULENAME "%s\n", buf); + printf("[%ld] " LOG_MODULENAME "%s\n", syscall(__NR_gettid), buf); } else { syslog(level, "[%ld] " LOG_MODULENAME "%s", syscall(__NR_gettid), buf); } diff --git a/xine_frontend.c b/xine_frontend.c index 56d39038..3ef1907f 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.21 2006-09-20 07:06:12 phintuka Exp $ + * $Id: xine_frontend.c,v 1.22 2006-09-23 06:47:14 phintuka Exp $ * */ @@ -54,7 +54,7 @@ static void x_syslog(int level, const char *fmt, ...) va_start(argp, fmt); vsnprintf(buf, sizeof(buf), fmt, argp); if(!LogToSysLog) { - printf(LOG_MODULENAME "%s\n", buf); + printf("[%ld] " LOG_MODULENAME "%s\n", syscall(__NR_gettid), buf); } else { syslog(level, "[%ld] " LOG_MODULENAME "%s", syscall(__NR_gettid), buf); } |
