From a6830fb0a8f597e0d304db69710c3108bb38dc12 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Mon, 30 Nov 2015 09:45:30 +0100 Subject: [PATCH] - changed debug output for buffered reporting --- config/stack_config.h | 2 +- src/iec61850/server/mms_mapping/reporting.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/stack_config.h b/config/stack_config.h index 7727f459..b5ece377 100644 --- a/config/stack_config.h +++ b/config/stack_config.h @@ -36,7 +36,7 @@ * 0 ==> server runs in multi-threaded mode (one thread for each connection and * 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 diff --git a/src/iec61850/server/mms_mapping/reporting.c b/src/iec61850/server/mms_mapping/reporting.c index 5d40e3ba..ab3d67e5 100644 --- a/src/iec61850/server/mms_mapping/reporting.c +++ b/src/iec61850/server/mms_mapping/reporting.c @@ -1531,6 +1531,7 @@ printEnqueuedReports(ReportControl* reportControl) { ReportBuffer* rb = reportControl->reportBuffer; +#if 0 printf("IED_SERVER: --- Enqueued reports ---\n"); if (rb->oldestReport == NULL) { @@ -1561,7 +1562,8 @@ printEnqueuedReports(ReportControl* reportControl) 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"); }