- changed debug output for buffered reporting

This commit is contained in:
Michael Zillgith 2015-11-30 09:45:30 +01:00
parent 91d122fd51
commit a6830fb0a8
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,7 @@
* 0 ==> server runs in multi-threaded mode (one thread for each connection and * 0 ==> server runs in multi-threaded mode (one thread for each connection and
* one server background thread ) * one server background thread )
*/ */
#define CONFIG_MMS_SINGLE_THREADED 0 #define CONFIG_MMS_SINGLE_THREADED 1
/* /*
* Optimize stack for threadless operation - don't use semaphores * Optimize stack for threadless operation - don't use semaphores

View file

@ -1531,6 +1531,7 @@ printEnqueuedReports(ReportControl* reportControl)
{ {
ReportBuffer* rb = reportControl->reportBuffer; ReportBuffer* rb = reportControl->reportBuffer;
#if 0
printf("IED_SERVER: --- Enqueued reports ---\n"); printf("IED_SERVER: --- Enqueued reports ---\n");
if (rb->oldestReport == NULL) { if (rb->oldestReport == NULL) {
@ -1561,7 +1562,8 @@ printEnqueuedReports(ReportControl* reportControl)
entry = entry->next; entry = entry->next;
} }
} }
printf("IED_SERVER: reports: %i\n", rb->reportsCount); #endif
printf("IED_SERVER: BRCB %s reports: %i\n", reportControl->name, rb->reportsCount);
printf("IED_SERVER: -------------------------\n"); printf("IED_SERVER: -------------------------\n");
} }