more readability for modes while logging

Origin commit data
------------------
Commit: 02e4c41ab3
Author: GetAway <get-away@t-online.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)

Origin message was:
------------------
- more readability for modes while logging
This commit is contained in:
GetAway
2022-03-27 21:46:44 +02:00
committed by vanhofen
parent 7b4ed5d6ba
commit b62836fa84
5 changed files with 54 additions and 10 deletions

View File

@@ -310,7 +310,7 @@ void CMoviePlayerGui::cutNeutrino()
m_ThisMode = NeutrinoModes::mode_unknown;
m_LastMode = CNeutrinoApp::getInstance()->getMode();
printf("%s: last mode %d\n", __func__, m_LastMode);fflush(stdout);
printf("%s: last mode %s\n", __func__, neutrinoMode_to_string(m_LastMode));fflush(stdout);
if (isWebChannel)
{
bool isRadioMode = (m_LastMode == NeutrinoModes::mode_radio || m_LastMode == NeutrinoModes::mode_webradio);
@@ -321,8 +321,8 @@ void CMoviePlayerGui::cutNeutrino()
{
m_ThisMode = NeutrinoModes::mode_ts;
}
printf("%s: this mode %d\n", __func__, m_ThisMode);fflush(stdout);
printf("%s: save mode %x\n", __func__, m_LastMode);fflush(stdout);
printf("%s: this mode %s\n", __func__, neutrinoMode_to_string(m_ThisMode));fflush(stdout);
printf("%s: save mode %s\n", __func__, neutrinoMode_to_string(m_LastMode));fflush(stdout);
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE, NeutrinoModes::norezap | m_ThisMode);
}
@@ -358,7 +358,7 @@ void CMoviePlayerGui::restoreNeutrino()
#else
CZapit::getInstance()->EnablePlayback(true);
#endif
printf("%s: restore mode %x\n", __func__, m_LastMode);fflush(stdout);
printf("%s: restore mode %s\n", __func__, neutrinoMode_to_string(m_LastMode));fflush(stdout);
#if 0
if (m_LastMode == NeutrinoModes::mode_tv)
g_RCInput->postMsg(NeutrinoMessages::EVT_PROGRAMLOCKSTATUS, 0x200, false);