scanalogic2: Only print actual state changes in the log.
This commit is contained in:
parent
9526f2d4f8
commit
28083961fb
|
@ -292,7 +292,9 @@ SR_PRIV void sl2_receive_transfer_in( struct libusb_transfer *transfer)
|
||||||
return;
|
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;
|
devc->state = devc->next_state;
|
||||||
|
|
||||||
if (devc->state == STATE_WAIT_DATA_READY) {
|
if (devc->state == STATE_WAIT_DATA_READY) {
|
||||||
|
@ -421,7 +423,9 @@ SR_PRIV void sl2_receive_transfer_out( struct libusb_transfer *transfer)
|
||||||
return;
|
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;
|
devc->state = devc->next_state;
|
||||||
|
|
||||||
if (devc->state == STATE_IDLE) {
|
if (devc->state == STATE_IDLE) {
|
||||||
|
|
Loading…
Reference in New Issue