From dea4bf298a65100d31ce8a4ec52ed9febbd00035 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 14 Jan 2006 16:04:36 +0100 Subject: [PATCH] Made the log messages regarding lost lock of devices "info" instead of "error" --- CONTRIBUTORS | 2 ++ HISTORY | 2 ++ dvbdevice.c | 10 +++++----- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 58fa14ff..98203b0e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -859,6 +859,8 @@ Andreas Brachold info available for implementing the SVDRP command MOVC for fixing the "plugins-clean" and "plugins-install" targets in the Makefile + for suggesting to make the log messages regarding lost lock of devices "info" + instead of "error" Manuel Hartl for suggesting to extend the logging info when starting/stopping timers diff --git a/HISTORY b/HISTORY index a59aabed..7271a4d9 100644 --- a/HISTORY +++ b/HISTORY @@ -4172,3 +4172,5 @@ Video Disk Recorder Revision History (reported by Philippe Gramoullé). - Made the "What's on now/next?" menus a lot faster by storing a pointer to each channel's schedule in the cChannel data. +- Made the log messages regarding lost lock of devices "info" instead of "error" + (suggested by Andreas Brachold). diff --git a/dvbdevice.c b/dvbdevice.c index 7fa39cce..fe32298a 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.149 2006/01/07 15:15:01 kls Exp $ + * $Id: dvbdevice.c 1.150 2006/01/14 15:57:36 kls Exp $ */ #include "dvbdevice.h" @@ -314,7 +314,7 @@ void cDvbTuner::Action(void) tunerStatus = tsSet; diseqcCommands = NULL; if (time(NULL) - lastTimeoutReport > 60) { // let's not get too many of these - esyslog("ERROR: frontend %d timed out while tuning to channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); + isyslog("frontend %d timed out while tuning to channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); lastTimeoutReport = time(NULL); } continue; @@ -323,13 +323,13 @@ void cDvbTuner::Action(void) if (Status & FE_REINIT) { tunerStatus = tsSet; diseqcCommands = NULL; - esyslog("ERROR: frontend %d was reinitialized", cardIndex); + isyslog("frontend %d was reinitialized", cardIndex); lastTimeoutReport = 0; continue; } else if (Status & FE_HAS_LOCK) { if (LostLock) { - esyslog("frontend %d regained lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); + isyslog("frontend %d regained lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); LostLock = false; } tunerStatus = tsLocked; @@ -338,7 +338,7 @@ void cDvbTuner::Action(void) } else if (tunerStatus == tsLocked) { LostLock = true; - esyslog("ERROR: frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); + isyslog("frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); tunerStatus = tsTuned; Timer.Set(lockTimeout); lastTimeoutReport = 0;