From e7dd3083e6fcd5151da7314d3c66694e05659e7d Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 17 Feb 2013 17:35:35 +0100 Subject: [PATCH] sectionsd: silence debug spam disable some debug messages, remove unneeded newlines from other messages Signed-off-by: Jacek Jendrzej --- src/eitd/sectionsd.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 7a81ff341..e8697f118 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -55,7 +55,7 @@ //#define ENABLE_SDT //FIXME //#define DEBUG_SDT_THREAD -#define DEBUG_TIME_THREAD +//#define DEBUG_TIME_THREAD #define DEBUG_SECTION_THREADS #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); - 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; @@ -927,7 +927,7 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen else 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*/) @@ -1426,7 +1426,7 @@ int CSectionThread::Sleep() TIMEVAL_TO_TIMESPEC(&now, &abs_wait); 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); beforeWait(); @@ -1474,7 +1474,7 @@ void CSectionThread::run() real_pause(); rs = Sleep(); #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); #endif } while (checkSleep()); @@ -1749,7 +1749,7 @@ void CCNThread::processSection() unlockMessaging(); #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); #endif dprintf("[cnThread] got current_next (0x%x) - sending event!\n", messaging_have_CN);