From 78b7e4e2522981405e53ec92e0135e66e78fa51f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 20 Jan 2024 20:04:03 +0100 Subject: [PATCH] Added the total number of errors when logging new recording errors --- HISTORY | 1 + recorder.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 77706b81..2f7f3b8d 100644 --- a/HISTORY +++ b/HISTORY @@ -9879,3 +9879,4 @@ Video Disk Recorder Revision History Matthias Senzel). - Added the move constructor to cString for better performance (thanks to Markus Ehrnsperger). +- Added the total number of errors when logging new recording errors. diff --git a/recorder.c b/recorder.c index 2ef18407..6c366a78 100644 --- a/recorder.c +++ b/recorder.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 5.5 2023/12/28 21:22:29 kls Exp $ + * $Id: recorder.c 5.6 2024/01/20 20:04:03 kls Exp $ */ #include "recorder.h" @@ -235,8 +235,8 @@ void cRecorder::HandleErrors(bool Force) if (errors > lastErrors) { int d = errors - lastErrors; if (DebugChecks) - fprintf(stderr, "%s: %s: %d error%s\n", *TimeToString(time(NULL)), recordingName, d, d > 1 ? "s" : ""); - esyslog("%s: %d error%s", recordingName, d, d > 1 ? "s" : ""); + fprintf(stderr, "%s: %s: %d new error%s (total %d)\n", *TimeToString(time(NULL)), recordingName, d, d > 1 ? "s" : "", errors); + esyslog("%s: %d new error%s (total %d)", recordingName, d, d > 1 ? "s" : "", errors); recordingInfo->SetErrors(oldErrors + errors); recordingInfo->Write(); LOCK_RECORDINGS_WRITE;