mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
sectionsd: add noisy messages for unexpected state
Origin commit data
------------------
Branch: ni/coolstream
Commit: 94c4a82b70
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-05-29 (Sun, 29 May 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#define NOISY_MESSAGE xprintf("NOISY_MESSAGE: unexpected execution in %s:%d, pleae report!\n", __func__, __LINE__)
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <dmxapi.h>
|
#include <dmxapi.h>
|
||||||
@@ -1059,6 +1060,7 @@ static void addEvent(const SIevent &evt, const time_t zeit, bool cn = false)
|
|||||||
mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.insert(e);
|
mySIeventsOrderServiceUniqueKeyFirstStartTimeEventUniqueKey.insert(e);
|
||||||
mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.insert(e);
|
mySIeventsOrderFirstEndTimeServiceIDEventUniqueKey.insert(e);
|
||||||
}
|
}
|
||||||
|
else NOISY_MESSAGE;
|
||||||
}
|
}
|
||||||
unlockEvents();
|
unlockEvents();
|
||||||
}
|
}
|
||||||
@@ -1105,6 +1107,7 @@ static void addEventTimes(const SIevent &evt)
|
|||||||
#endif
|
#endif
|
||||||
static void addNVODevent(const SIevent &evt)
|
static void addNVODevent(const SIevent &evt)
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
SIevent *eptr = new SIevent(evt);
|
SIevent *eptr = new SIevent(evt);
|
||||||
|
|
||||||
if (!eptr)
|
if (!eptr)
|
||||||
@@ -1721,6 +1724,7 @@ static bool AddServiceToAutoBouquets(const char *provname, const t_original_netw
|
|||||||
// Fuegt ein Service in alle Mengen ein
|
// Fuegt ein Service in alle Mengen ein
|
||||||
static bool addService(const SIservice &s, const int is_actual)
|
static bool addService(const SIservice &s, const int is_actual)
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
bool already_exists;
|
bool already_exists;
|
||||||
bool is_new = false;
|
bool is_new = false;
|
||||||
|
|
||||||
@@ -2421,6 +2425,7 @@ static void commandDumpAllServices(int connfd, char* /*data*/, const unsigned /*
|
|||||||
|
|
||||||
for (MySIservicesOrderUniqueKey::iterator s = mySIservicesOrderUniqueKey.begin(); s != mySIservicesOrderUniqueKey.end(); ++s)
|
for (MySIservicesOrderUniqueKey::iterator s = mySIservicesOrderUniqueKey.begin(); s != mySIservicesOrderUniqueKey.end(); ++s)
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
count += 1 + snprintf(daten, MAX_SIZE_DATEN,
|
count += 1 + snprintf(daten, MAX_SIZE_DATEN,
|
||||||
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
|
PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS
|
||||||
" %hu %hhu %d %d %d %d %u ",
|
" %hu %hhu %d %d %d %d %u ",
|
||||||
@@ -3331,6 +3336,7 @@ static void commandCurrentNextInfoChannelID(int connfd, char *data, const unsign
|
|||||||
|
|
||||||
if (si != mySIservicesOrderUniqueKey.end())
|
if (si != mySIservicesOrderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
dprintf("[sectionsd] current service has%s scheduled events, and has%s present/following events\n", si->second->eitScheduleFlag() ? "" : " no", si->second->eitPresentFollowingFlag() ? "" : " no" );
|
dprintf("[sectionsd] current service has%s scheduled events, and has%s present/following events\n", si->second->eitScheduleFlag() ? "" : " no", si->second->eitPresentFollowingFlag() ? "" : " no" );
|
||||||
|
|
||||||
if ( /*( !si->second->eitScheduleFlag() ) || */
|
if ( /*( !si->second->eitScheduleFlag() ) || */
|
||||||
@@ -3700,6 +3706,7 @@ static void commandActualEPGchannelID(int connfd, char *data, const unsigned dat
|
|||||||
|
|
||||||
static void commandGetEPGPrevNext(int connfd, char *data, const unsigned dataLength)
|
static void commandGetEPGPrevNext(int connfd, char *data, const unsigned dataLength)
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
struct sectionsd::msgResponseHeader responseHeader;
|
struct sectionsd::msgResponseHeader responseHeader;
|
||||||
responseHeader.dataLength = 0;
|
responseHeader.dataLength = 0;
|
||||||
char* msgData = NULL;
|
char* msgData = NULL;
|
||||||
@@ -3911,6 +3918,7 @@ static void sendEventList(int connfd, const unsigned char serviceTyp1, const uns
|
|||||||
|
|
||||||
if (s != mySIservicesOrderUniqueKey.end())
|
if (s != mySIservicesOrderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
if (s->second->serviceTyp == serviceTyp1 || (serviceTyp2 && s->second->serviceTyp == serviceTyp2))
|
if (s->second->serviceTyp == serviceTyp1 || (serviceTyp2 && s->second->serviceTyp == serviceTyp2))
|
||||||
{
|
{
|
||||||
sname = s->second->serviceName;
|
sname = s->second->serviceName;
|
||||||
@@ -4239,6 +4247,7 @@ static void commandEPGepgIDshort(int connfd, char *data, const unsigned dataLeng
|
|||||||
|
|
||||||
static void commandTimesNVODservice(int connfd, char *data, const unsigned dataLength)
|
static void commandTimesNVODservice(int connfd, char *data, const unsigned dataLength)
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
MySIservicesNVODorderUniqueKey::iterator si;
|
MySIservicesNVODorderUniqueKey::iterator si;
|
||||||
char *msgData = 0;
|
char *msgData = 0;
|
||||||
struct sectionsd::msgResponseHeader responseHeader;
|
struct sectionsd::msgResponseHeader responseHeader;
|
||||||
@@ -4259,6 +4268,7 @@ static void commandTimesNVODservice(int connfd, char *data, const unsigned dataL
|
|||||||
|
|
||||||
if (si != mySIservicesNVODorderUniqueKey.end())
|
if (si != mySIservicesNVODorderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
dprintf("NVODServices: %u\n", si->second->nvods.size());
|
dprintf("NVODServices: %u\n", si->second->nvods.size());
|
||||||
|
|
||||||
if (si->second->nvods.size())
|
if (si->second->nvods.size())
|
||||||
@@ -7542,6 +7552,7 @@ static void *eitThread(void *)
|
|||||||
|
|
||||||
if (si != mySIservicesOrderUniqueKey.end())
|
if (si != mySIservicesOrderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
/* I'm not 100% sure what this is good for... */
|
/* I'm not 100% sure what this is good for... */
|
||||||
// 1 == scheduled
|
// 1 == scheduled
|
||||||
// 2 == current/next
|
// 2 == current/next
|
||||||
@@ -7703,6 +7714,7 @@ static void *eitThread(void *)
|
|||||||
|
|
||||||
if (si != mySIservicesNVODorderUniqueKey.end())
|
if (si != mySIservicesNVODorderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
// Ist ein nvod-event
|
// Ist ein nvod-event
|
||||||
writeLockEvents();
|
writeLockEvents();
|
||||||
|
|
||||||
@@ -9155,6 +9167,7 @@ static void *cnThread(void *)
|
|||||||
|
|
||||||
if (si != mySIservicesOrderUniqueKey.end())
|
if (si != mySIservicesOrderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
dprintf("[sectionsd] current service has%s scheduled events, and has%s present/following events\n", si->second->eitScheduleFlag() ? "" : " no", si->second->eitPresentFollowingFlag() ? "" : " no" );
|
dprintf("[sectionsd] current service has%s scheduled events, and has%s present/following events\n", si->second->eitScheduleFlag() ? "" : " no", si->second->eitPresentFollowingFlag() ? "" : " no" );
|
||||||
|
|
||||||
if ( /*( !si->second->eitScheduleFlag() ) || */
|
if ( /*( !si->second->eitScheduleFlag() ) || */
|
||||||
@@ -9595,6 +9608,7 @@ static void *cnThread(void *)
|
|||||||
MySIservicesNVODorderUniqueKey::iterator si = mySIservicesNVODorderUniqueKey.find(uniqueServiceKey);
|
MySIservicesNVODorderUniqueKey::iterator si = mySIservicesNVODorderUniqueKey.find(uniqueServiceKey);
|
||||||
if (si != mySIservicesNVODorderUniqueKey.end())
|
if (si != mySIservicesNVODorderUniqueKey.end())
|
||||||
{
|
{
|
||||||
|
NOISY_MESSAGE;
|
||||||
dprintf("NVODServices: %u\n", si->second->nvods.size());
|
dprintf("NVODServices: %u\n", si->second->nvods.size());
|
||||||
|
|
||||||
if (si->second->nvods.size()) {
|
if (si->second->nvods.size()) {
|
||||||
|
Reference in New Issue
Block a user