Output datagram stats only if EC_RT_SYSLOG. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Wed, 04 Dec 2013 19:53:59 +0100
branchstable-1.5
changeset 2537 298ce9f9050f
parent 2534 a0e787e196cd
child 2538 51ad16e57f8f
Output datagram stats only if EC_RT_SYSLOG.
master/datagram_pair.c
--- a/master/datagram_pair.c	Fri Nov 29 16:42:20 2013 +0100
+++ b/master/datagram_pair.c	Wed Dec 04 19:53:59 2013 +0100
@@ -185,7 +185,9 @@
             dev_idx++) {
         ec_datagram_t *datagram = &pair->datagrams[dev_idx];
 
+#ifdef EC_RT_SYSLOG
         ec_datagram_output_stats(datagram);
+#endif
 
         if (datagram->state == EC_DATAGRAM_RECEIVED) {
             pair_wc += datagram->working_counter;