From d4893ad1fed2e2b157c404d610db779138c4c461 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 13 May 2002 16:35:49 +0200 Subject: Improved the [eid]syslog() macros --- plugin.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugin.c') diff --git a/plugin.c b/plugin.c index fa9de4ca..bd519596 100644 --- a/plugin.c +++ b/plugin.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: plugin.c 1.4 2002/05/13 16:08:22 kls Exp $ + * $Id: plugin.c 1.5 2002/05/13 16:31:09 kls Exp $ */ #include "plugin.h" @@ -139,7 +139,7 @@ static char *SkipQuote(char *s) strcpy(s, s + 1); return s; } - esyslog(LOG_ERR, "ERROR: missing closing %c", c); + esyslog("ERROR: missing closing %c", c); fprintf(stderr, "vdr: missing closing %c\n", c); return NULL; } @@ -147,9 +147,9 @@ static char *SkipQuote(char *s) bool cDll::Load(bool Log) { if (Log) - isyslog(LOG_INFO, "loading plugin: %s", fileName); + isyslog("loading plugin: %s", fileName); if (handle) { - esyslog(LOG_ERR, "attempt to load plugin '%s' twice!", fileName); + esyslog("attempt to load plugin '%s' twice!", fileName); return false; } handle = dlopen(fileName, RTLD_NOW); @@ -175,7 +175,7 @@ bool cDll::Load(bool Log) if (*p) p++; else { - esyslog(LOG_ERR, "ERROR: missing character after \\"); + esyslog("ERROR: missing character after \\"); fprintf(stderr, "vdr: missing character after \\\n"); return false; } @@ -191,7 +191,7 @@ bool cDll::Load(bool Log) if (argc < MAXPLUGINARGS - 1) argv[argc++] = q; else { - esyslog(LOG_ERR, "ERROR: plugin argument list too long"); + esyslog("ERROR: plugin argument list too long"); fprintf(stderr, "vdr: plugin argument list too long\n"); return false; } @@ -210,7 +210,7 @@ bool cDll::Load(bool Log) } } else { - esyslog(LOG_ERR, "ERROR: %s", error); + esyslog("ERROR: %s", error); fprintf(stderr, "vdr: %s\n", error); } return !error && plugin; @@ -299,7 +299,7 @@ bool cPluginManager::StartPlugins(void) if (p) { int Language = Setup.OSDLanguage; Setup.OSDLanguage = 0; // the i18n texts are only available _after_ Start() - isyslog(LOG_INFO, "starting plugin: %s (%s): %s", p->Name(), p->Version(), p->Description()); + isyslog("starting plugin: %s (%s): %s", p->Name(), p->Version(), p->Description()); Setup.OSDLanguage = Language; if (!p->Start()) return false; @@ -354,7 +354,7 @@ void cPluginManager::Shutdown(bool Log) if (Log) { cPlugin *p = dll->Plugin(); if (p) - isyslog(LOG_INFO, "stopping plugin: %s", p->Name()); + isyslog("stopping plugin: %s", p->Name()); } dlls.Del(dll); } -- cgit v1.2.3