Output debug message only on debug level > 0.

This commit is contained in:
Florian Pose 2008-11-18 11:20:30 +00:00
parent fae8df09b0
commit e643a71543
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}