mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
eitd/sectionsd.cpp: Fix format specifiers for platform independence
- Changed format specifiers from %ld to %" PRId64 " for time-related variables to ensure cross-platform compatibility. - Updated format specifiers from %lx to %" PRIx64 " for consistency with 64-bit integers. - Added casts to `int64_t` for accurate formatting. This changes should address format warnings and ensure correct behavior on systems with 64-bit integers.
This commit is contained in:
@@ -1765,17 +1765,17 @@ bool CCNThread::shouldSleep()
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
/* on first retry, restart the demux. I'm not sure if it is a driver bug
|
/* on first retry, restart the demux. I'm not sure if it is a driver bug
|
||||||
* or a bug in our logic, but without this, I'm sometimes missing CN events
|
* or a bug in our logic, but without this, I'm sometimes missing CN events
|
||||||
* and / or the eit_version and thus the update filter will stop working */
|
* and / or the eit_version and thus the update filter will stop working */
|
||||||
if (++eit_retry < 2) {
|
if (++eit_retry < 2) {
|
||||||
debug(DEBUG_ERROR, "%s::%s first retry (%d) -> restart demux", name.c_str(), __func__, eit_retry);
|
debug(DEBUG_ERROR, "%s::%s first retry (%d) -> restart demux", name.c_str(), __func__, eit_retry);
|
||||||
change(0); /* this also resets lastChanged */
|
change(0); /* this also resets lastChanged */
|
||||||
}
|
}
|
||||||
/* ugly, this has been checked before. But timeoutsDMX can be < 0 for multiple reasons,
|
/* ugly, this has been checked before. But timeoutsDMX can be < 0 for multiple reasons,
|
||||||
* and only skipTime should send CNThread finally to sleep if eit_version is not found */
|
* and only skipTime should send CNThread finally to sleep if eit_version is not found */
|
||||||
time_t since = time_monotonic() - lastChanged;
|
time_t since = time_monotonic() - lastChanged;
|
||||||
if (since > skipTime) {
|
if (since > skipTime) {
|
||||||
debug(DEBUG_ERROR, "%s::%s timed out after %lds -> going to sleep", name.c_str(), __func__, since);
|
debug(DEBUG_ERROR, "%s::%s timed out after %" PRId64 "s -> going to sleep", name.c_str(), __func__, static_cast<int64_t>(since));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/* retry */
|
/* retry */
|
||||||
@@ -2772,7 +2772,7 @@ bool CEitManager::getEPGidShort(t_event_id epg_id, CShortEPGData * epgdata)
|
|||||||
bool CEitManager::getEPGid(const t_event_id epg_id, const time_t startzeit, CEPGData * epgdata)
|
bool CEitManager::getEPGid(const t_event_id epg_id, const time_t startzeit, CEPGData * epgdata)
|
||||||
{
|
{
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
debug(DEBUG_INFO, "Request of actual EPG for 0x%" PRIx64 " 0x%lx", epg_id, startzeit);
|
debug(DEBUG_INFO, "Request of actual EPG for 0x%" PRIx64 " 0x%" PRIx64, epg_id, static_cast<uint64_t>(startzeit));
|
||||||
|
|
||||||
const SIevent& evt = findSIeventForEventUniqueKey(epg_id);
|
const SIevent& evt = findSIeventForEventUniqueKey(epg_id);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user