mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
sectionsd: silence debug spam
disable some debug messages, remove unneeded newlines from other messages Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
committed by
Jacek Jendrzej
parent
a0cefea55a
commit
e7dd3083e6
@@ -55,7 +55,7 @@
|
|||||||
//#define ENABLE_SDT //FIXME
|
//#define ENABLE_SDT //FIXME
|
||||||
|
|
||||||
//#define DEBUG_SDT_THREAD
|
//#define DEBUG_SDT_THREAD
|
||||||
#define DEBUG_TIME_THREAD
|
//#define DEBUG_TIME_THREAD
|
||||||
|
|
||||||
#define DEBUG_SECTION_THREADS
|
#define DEBUG_SECTION_THREADS
|
||||||
#define DEBUG_CN_THREAD
|
#define DEBUG_CN_THREAD
|
||||||
@@ -884,7 +884,7 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen
|
|||||||
|
|
||||||
t_channel_id uniqueServiceKey = (((sectionsd::commandSetServiceChanged *)data)->channel_id);
|
t_channel_id uniqueServiceKey = (((sectionsd::commandSetServiceChanged *)data)->channel_id);
|
||||||
|
|
||||||
xprintf("[sectionsd] commandserviceChanged: Service change to " PRINTF_CHANNEL_ID_TYPE "\n\n", uniqueServiceKey);
|
xprintf("[sectionsd] commandserviceChanged: Service change to " PRINTF_CHANNEL_ID_TYPE "\n", uniqueServiceKey);
|
||||||
|
|
||||||
static t_channel_id time_trigger_last = 0;
|
static t_channel_id time_trigger_last = 0;
|
||||||
|
|
||||||
@@ -927,7 +927,7 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen
|
|||||||
else
|
else
|
||||||
dprintf("[sectionsd] commandserviceChanged: no change...\n");
|
dprintf("[sectionsd] commandserviceChanged: no change...\n");
|
||||||
|
|
||||||
xprintf("[sectionsd] commandserviceChanged: Service changed to " PRINTF_CHANNEL_ID_TYPE "\n\n", uniqueServiceKey);
|
dprintf("[sectionsd] commandserviceChanged: Service changed to " PRINTF_CHANNEL_ID_TYPE "\n", uniqueServiceKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void commandGetIsScanningActive(int connfd, char* /*data*/, const unsigned /*dataLength*/)
|
static void commandGetIsScanningActive(int connfd, char* /*data*/, const unsigned /*dataLength*/)
|
||||||
@@ -1426,7 +1426,7 @@ int CSectionThread::Sleep()
|
|||||||
TIMEVAL_TO_TIMESPEC(&now, &abs_wait);
|
TIMEVAL_TO_TIMESPEC(&now, &abs_wait);
|
||||||
abs_wait.tv_sec += sleep_time;
|
abs_wait.tv_sec += sleep_time;
|
||||||
}
|
}
|
||||||
xprintf("%s: going to sleep for %d seconds...\n", name.c_str(), sleep_time);
|
dprintf("%s: going to sleep for %d seconds...\n", name.c_str(), sleep_time);
|
||||||
pthread_mutex_lock(&start_stop_mutex);
|
pthread_mutex_lock(&start_stop_mutex);
|
||||||
|
|
||||||
beforeWait();
|
beforeWait();
|
||||||
@@ -1474,7 +1474,7 @@ void CSectionThread::run()
|
|||||||
real_pause();
|
real_pause();
|
||||||
rs = Sleep();
|
rs = Sleep();
|
||||||
#ifdef DEBUG_SECTION_THREADS
|
#ifdef DEBUG_SECTION_THREADS
|
||||||
xprintf("%s: wakeup, running %d scanning %d blacklisted %d reason %d\n\n",
|
xprintf("%s: wakeup, running %d scanning %d blacklisted %d reason %d\n",
|
||||||
name.c_str(), running, scanning, channel_is_blacklisted, rs);
|
name.c_str(), running, scanning, channel_is_blacklisted, rs);
|
||||||
#endif
|
#endif
|
||||||
} while (checkSleep());
|
} while (checkSleep());
|
||||||
@@ -1749,7 +1749,7 @@ void CCNThread::processSection()
|
|||||||
unlockMessaging();
|
unlockMessaging();
|
||||||
|
|
||||||
#ifdef DEBUG_CN_THREAD
|
#ifdef DEBUG_CN_THREAD
|
||||||
xprintf("%s: have CN: timeoutsDMX %d messaging_have_CN %x messaging_got_CN %x\n\n",
|
xprintf("%s: have CN: timeoutsDMX %d messaging_have_CN %x messaging_got_CN %x\n",
|
||||||
name.c_str(), timeoutsDMX, messaging_have_CN, messaging_got_CN);
|
name.c_str(), timeoutsDMX, messaging_have_CN, messaging_got_CN);
|
||||||
#endif
|
#endif
|
||||||
dprintf("[cnThread] got current_next (0x%x) - sending event!\n", messaging_have_CN);
|
dprintf("[cnThread] got current_next (0x%x) - sending event!\n", messaging_have_CN);
|
||||||
|
Reference in New Issue
Block a user