fx2lafw: Use libusb_error_name() for reporting transfer status.
This commit is contained in:
parent
07ffa5b315
commit
0f26276329
|
@ -396,8 +396,8 @@ SR_PRIV void fx2lafw_receive_transfer(struct libusb_transfer *transfer)
|
|||
return;
|
||||
}
|
||||
|
||||
sr_dbg("receive_transfer(): status %d received %d bytes.",
|
||||
transfer->status, transfer->actual_length);
|
||||
sr_dbg("receive_transfer(): status %s received %d bytes.",
|
||||
libusb_error_name(transfer->status), transfer->actual_length);
|
||||
|
||||
/* Save incoming transfer before reusing the transfer struct. */
|
||||
unitsize = devc->sample_wide ? 2 : 1;
|
||||
|
|
Loading…
Reference in New Issue