diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0852c10e..a6b67890 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3389,6 +3389,7 @@ Dietmar Spingler for suggesting to implement the setup option "Recording/Record key handling" for suggesting to cache the channel/CAM relations in the file 'cam.data' for suggesting to optionally list the channels with channel ids in the SVDRP command LSTC + for suggesting to include the channel ID in log messages about switching channels Stefan Schallenberg for adding the functions IndexOf(), InsertUnique(), AppendUnique() and RemoveElement() diff --git a/HISTORY b/HISTORY index 57c7b08c..e0d00b56 100644 --- a/HISTORY +++ b/HISTORY @@ -8997,3 +8997,5 @@ Video Disk Recorder Revision History the current SID, in order to avoid any parental rating dialogs. - Fixed handling UNC values (the shift operator behaves unexpected for shift values larger than the size of the variable). +- Log messages about switching channels now include the channel ID (suggested by + Dietmar Spingler). diff --git a/device.c b/device.c index 185565b5..21f98644 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 4.16 2017/05/01 09:24:49 kls Exp $ + * $Id: device.c 4.17 2017/05/01 13:00:57 kls Exp $ */ #include "device.h" @@ -782,7 +782,7 @@ bool cDevice::MaySwitchTransponder(const cChannel *Channel) const bool cDevice::SwitchChannel(const cChannel *Channel, bool LiveView) { if (LiveView) { - isyslog("switching to channel %d (%s)", Channel->Number(), Channel->Name()); + isyslog("switching to channel %d %s (%s)", Channel->Number(), *Channel->GetChannelID().ToString(), Channel->Name()); cControl::Shutdown(); // prevents old channel from being shown too long if GetDevice() takes longer } for (int i = 3; i--;) { diff --git a/menu.c b/menu.c index 357aaf83..ac3c086c 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.25 2017/04/20 09:15:49 kls Exp $ + * $Id: menu.c 4.26 2017/05/01 13:01:00 kls Exp $ */ #include "menu.h" @@ -5185,7 +5185,7 @@ bool cRecordControls::Start(cTimers *Timers, cTimer *Timer, bool Pause) int Priority = Timer ? Timer->Priority() : Pause ? Setup.PausePriority : Setup.DefaultPriority; cDevice *device = cDevice::GetDevice(Channel, Priority, false); if (device) { - dsyslog("switching device %d to channel %d (%s)", device->DeviceNumber() + 1, Channel->Number(), Channel->Name()); + dsyslog("switching device %d to channel %d %s (%s)", device->DeviceNumber() + 1, Channel->Number(), *Channel->GetChannelID().ToString(), Channel->Name()); if (!device->SwitchChannel(Channel, false)) { ShutdownHandler.RequestEmergencyExit(); return false; diff --git a/vdr.c b/vdr.c index 925f35fb..4fc2bf1e 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 4.12 2017/04/03 12:35:37 kls Exp $ + * $Id: vdr.c 4.13 2017/05/01 13:00:51 kls Exp $ */ #include @@ -1151,7 +1151,7 @@ int main(int argc, char *argv[]) if (!Device->IsTunedToTransponder(Timer->Channel())) { if (Device == cDevice::ActualDevice() && !Device->IsPrimaryDevice()) cDevice::PrimaryDevice()->StopReplay(); // stop transfer mode - dsyslog("switching device %d to channel %d (%s)", Device->DeviceNumber() + 1, Timer->Channel()->Number(), Timer->Channel()->Name()); + dsyslog("switching device %d to channel %d %s (%s)", Device->DeviceNumber() + 1, Timer->Channel()->Number(), *Timer->Channel()->GetChannelID().ToString(), Timer->Channel()->Name()); if (Device->SwitchChannel(Timer->Channel(), false)) Device->SetOccupied(TIMERDEVICETIMEOUT); }