From e643a71543514e4c5c060ff2b44b6066cc62f369 Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Tue, 18 Nov 2008 11:20:30 +0000 Subject: [PATCH] Output debug message only on debug level > 0. --- master/voe_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master/voe_handler.c b/master/voe_handler.c index bad865f2..66e482ed 100644 --- a/master/voe_handler.c +++ b/master/voe_handler.c @@ -491,8 +491,8 @@ void ec_voe_handler_state_read_nosync_response(ec_voe_handler_t *voe) 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; }