From 796da9e0f693f6af68c453b40163b71bd7210723 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 9 Sep 2024 08:53:57 +0200 Subject: [PATCH] Improved the error message when closing a frontend --- CONTRIBUTORS | 1 + HISTORY | 3 ++- dvbdevice.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 6e44e32a..0a4555ff 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2580,6 +2580,7 @@ Markus Ehrnsperger different lengths for suggesting to add the lines from 'Fixed a timeout in cDvbDevice while tuning after the frontend has been reopened' to cDvbTuner::ProvidesFrontend() + for improving the error message when closing a frontend Werner Färber for reporting a bug in handling the cPluginManager::Active() result when pressing diff --git a/HISTORY b/HISTORY index 315af0e2..3184d721 100644 --- a/HISTORY +++ b/HISTORY @@ -9952,7 +9952,7 @@ Video Disk Recorder Revision History - Added the lines from 'Fixed a timeout in cDvbDevice while tuning after the frontend has been reopened' to cDvbTuner::ProvidesFrontend() (suggested by Markus Ehrnsperger). -2024-09-01: +2024-09-09: - Removed deprecated function cDevice::SetCurrentChannel(const cChannel *Channel). - Removed deprecated function cSkinDisplayMenu::SetItemEvent(const cEvent *Event, int Index, @@ -9979,3 +9979,4 @@ Video Disk Recorder Revision History - Fixed a crash when deleting a recording that is currently being edited, and then immediately deleting the edited version, too (reported by Marko Mäkelä). - The '.update' file in the video directory is now created if it doesn't already exist. +- Improved the error message when closing a frontend (thanks to Markus Ehrnsperger). diff --git a/dvbdevice.c b/dvbdevice.c index ff399b29..be7092fd 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 5.7 2024/07/14 15:41:01 kls Exp $ + * $Id: dvbdevice.c 5.8 2024/09/09 08:53:57 kls Exp $ */ #include "dvbdevice.h" @@ -394,7 +394,7 @@ void cDvbFrontend::Close(void) { if (fd_frontend >= 0) { if (close(fd_frontend) != 0) - esyslog("ERROR: frontend %d/%d", adapter, frontend); + esyslog("ERROR: frontend %d/%d: %m (%s:%d)", adapter, frontend, __FILE__, __LINE__); fd_frontend = -1; } }