return;
}
- sr_spew("State changed from %i to %i.", devc->state, devc->next_state);
+ if (devc->state != devc->next_state)
+ sr_spew("State changed from %i to %i.",
+ devc->state, devc->next_state);
devc->state = devc->next_state;
if (devc->state == STATE_WAIT_DATA_READY) {
return;
}
- sr_spew("State changed from %i to %i.", devc->state, devc->next_state);
+ if (devc->state != devc->next_state)
+ sr_spew("State changed from %i to %i.",
+ devc->state, devc->next_state);
devc->state = devc->next_state;
if (devc->state == STATE_IDLE) {