From patchwork Sat Jan 14 14:25:03 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Brachold X-Patchwork-Id: 12156 Received: from tc11-n67-111.de.inter.net ([213.73.67.111] helo=wopr.deltab.de) by www.linuxtv.org with esmtp (Exim 4.50) id 1ExmLW-0001AV-R8 for vdr@linuxtv.org; Sat, 14 Jan 2006 15:25:35 +0100 Received: from andreas by wopr.deltab.de with local (Exim 4.50) id 1ExmL1-0001Z8-Re for vdr@linuxtv.org; Sat, 14 Jan 2006 15:25:03 +0100 From: Andreas Brachold To: vdr@linuxtv.org Date: Sat, 14 Jan 2006 15:25:03 +0100 Message-Id: <1137248703.5231.20.camel@wopr.deltab.de> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Subject: [vdr] Reduce many syslog messages lost lock X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2006 14:25:35 -0000 Status: O X-Status: X-Keywords: X-UID: 7193 Hi, i have little request, to reduce syslog messages like "lost lock" changes inside vdr-1.3.38. i got any message like ... ERROR: frontend 1 lost lock on channel 0, tp 211739 ... ERROR: frontend 1 lost lock on channel 0, tp 212129 ... ERROR: frontend 1 lost lock on channel 0, tp 212168 ... ERROR: frontend 1 lost lock on channel 0, tp 212285 ... ERROR: frontend 1 lost lock on channel 0, tp 212363 I run "vdr -l 1", what normally only show error messages on syslog. I think that is'nt a really important error message, so that i attach a patch that make from esyslog => dsyslog, but also thinkable is a change to isyslog. BTW: what means channel "0" ? Come that from Transponder/EPG Scan, because here on a disicon-system not all frequency from ASTRA available... Cu, Andreas --- dvbdevice.c.bak 2006-01-14 15:01:25.000000000 +0100 +++ dvbdevice.c 2006-01-14 15:00:58.000000000 +0100 @@ -314,7 +314,7 @@ 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()); + dsyslog("ERROR: frontend %d timed out while tuning to channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); lastTimeoutReport = time(NULL); } continue; @@ -323,13 +323,13 @@ if (Status & FE_REINIT) { tunerStatus = tsSet; diseqcCommands = NULL; - esyslog("ERROR: frontend %d was reinitialized", cardIndex); + dsyslog("ERROR: 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()); + dsyslog("frontend %d regained lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); LostLock = false; } tunerStatus = tsLocked; @@ -338,7 +338,7 @@ } else if (tunerStatus == tsLocked) { LostLock = true; - esyslog("ERROR: frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); + dsyslog("ERROR: frontend %d lost lock on channel %d, tp %d", cardIndex, channel.Number(), channel.Transponder()); tunerStatus = tsTuned; Timer.Set(lockTimeout); lastTimeoutReport = 0;