summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-13 16:35:49 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-13 16:35:49 +0200
commitd4893ad1fed2e2b157c404d610db779138c4c461 (patch)
tree50d97120ec3a806cf2bcc74cd6385c750eb15d77 /thread.c
parent49fcbf19fa2a179d06990443349575ffa86a697f (diff)
downloadvdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.gz
vdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.bz2
Improved the [eid]syslog() macros
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/thread.c b/thread.c
index f4213e43..925fc4d9 100644
--- a/thread.c
+++ b/thread.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: thread.c 1.19 2002/03/09 11:51:56 kls Exp $
+ * $Id: thread.c 1.20 2002/05/13 16:32:09 kls Exp $
*/
#include "thread.h"
@@ -153,7 +153,7 @@ void cThread::Cancel(int WaitSeconds)
return;
usleep(10000);
}
- esyslog(LOG_ERR, "ERROR: thread %d won't end (waited %d seconds) - cancelling it...", threadPid, WaitSeconds);
+ esyslog("ERROR: thread %d won't end (waited %d seconds) - cancelling it...", threadPid, WaitSeconds);
}
pthread_cancel(thread);
}
@@ -175,18 +175,18 @@ void cThread::RaisePanic(void)
}
lastPanic = time(NULL);
if (panicLevel > MAXPANICLEVEL) {
- esyslog(LOG_ERR, "ERROR: max. panic level exceeded");
+ esyslog("ERROR: max. panic level exceeded");
EmergencyExit(true);
}
else
- dsyslog(LOG_INFO, "panic level: %d", panicLevel);
+ dsyslog("panic level: %d", panicLevel);
}
bool cThread::EmergencyExit(bool Request)
{
if (!Request)
return emergencyExitRequested;
- esyslog(LOG_ERR, "initiating emergency exit");
+ esyslog("initiating emergency exit");
return emergencyExitRequested = true; // yes, it's an assignment, not a comparison!
}