summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xine/post.c2
-rw-r--r--xine_frontend.c4
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);
}