mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +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.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2cbc36e556
Author: Thilo Graf <dbt@novatux.de>
Date: 2024-09-02 (Mon, 02 Sep 2024)
Origin message was:
------------------
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 was generated by Migit
This commit is contained in:
@@ -1767,17 +1767,17 @@ bool CCNThread::shouldSleep()
|
||||
return true;
|
||||
|
||||
/* 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
|
||||
* and / or the eit_version and thus the update filter will stop working */
|
||||
* 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 */
|
||||
if (++eit_retry < 2) {
|
||||
debug(DEBUG_ERROR, "%s::%s first retry (%d) -> restart demux", name.c_str(), __func__, eit_retry);
|
||||
change(0); /* this also resets lastChanged */
|
||||
}
|
||||
/* 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;
|
||||
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;
|
||||
}
|
||||
/* retry */
|
||||
@@ -2774,7 +2774,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 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);
|
||||
|
||||
|
Reference in New Issue
Block a user