Output debug message only on debug level > 0.
authorFlorian Pose <fp@igh-essen.com>
Tue, 18 Nov 2008 11:20:30 +0000
changeset 1315 26b4f94cfdfb
parent 1314 b3d06a8807b3
child 1316 d01d9cce8b59
Output debug message only on debug level > 0.
master/voe_handler.c
--- a/master/voe_handler.c	Tue Nov 18 11:13:49 2008 +0000
+++ b/master/voe_handler.c	Tue Nov 18 11:20:30 2008 +0000
@@ -491,8 +491,8 @@
     if (datagram->working_counter == 0) {
         voe->state = ec_voe_handler_state_error;
         voe->request_state = EC_INT_REQUEST_FAILURE;
-        EC_DBG("Slave (%u) did not send data with Mailbox.",
-                slave->ring_position);
+        if (master->debug_level)
+            EC_DBG("Slave %u did not send VoE data.", slave->ring_position);
         return;
     }