diff --git a/log.h b/log.h index 4d5ee67..48b6601 100644 --- a/log.h +++ b/log.h @@ -34,9 +34,9 @@ #define debug10(x...) void( SatipConfig.IsTraceMode(cSatipConfig::eTraceModeDebug10) ? dsyslog("SATIP10: " x) : void() ) // 0x0400: CI #define debug11(x...) void( SatipConfig.IsTraceMode(cSatipConfig::eTraceModeDebug11) ? dsyslog("SATIP11: " x) : void() ) -// 0x0800: Discovery +// 0x0800: Pids #define debug12(x...) void( SatipConfig.IsTraceMode(cSatipConfig::eTraceModeDebug12) ? dsyslog("SATIP12: " x) : void() ) -// 0x1000: Pids +// 0x1000: Discovery #define debug13(x...) void( SatipConfig.IsTraceMode(cSatipConfig::eTraceModeDebug13) ? dsyslog("SATIP13: " x) : void() ) // 0x2000: TBD #define debug14(x...) void( SatipConfig.IsTraceMode(cSatipConfig::eTraceModeDebug14) ? dsyslog("SATIP14: " x) : void() ) diff --git a/msearch.c b/msearch.c index bb8e9a6..f5edafc 100644 --- a/msearch.c +++ b/msearch.c @@ -63,12 +63,12 @@ void cSatipMsearch::Process(void) int length; while ((length = Read(bufferM, bufferLenM)) > 0) { bufferM[min(length, int(bufferLenM - 1))] = 0; - debug12("%s len=%d buf=%s", __PRETTY_FUNCTION__, length, bufferM); + debug13("%s len=%d buf=%s", __PRETTY_FUNCTION__, length, bufferM); bool status = false, valid = false; char *s, *p = reinterpret_cast(bufferM), *location = NULL; char *r = strtok_r(p, "\r\n", &s); while (r) { - debug12("%s r=%s", __PRETTY_FUNCTION__, r); + debug13("%s r=%s", __PRETTY_FUNCTION__, r); // Check the status code // HTTP/1.1 200 OK if (!status && startswith(r, "HTTP/1.1 200 OK"))