fx2lafw: Use libusb_error_name() for reporting transfer status.

This commit is contained in:
Uwe Hermann 2015-04-03 21:05:02 +02:00
parent 07ffa5b315
commit 0f26276329
1 changed files with 2 additions and 2 deletions

View File

@ -396,8 +396,8 @@ SR_PRIV void fx2lafw_receive_transfer(struct libusb_transfer *transfer)
return; return;
} }
sr_dbg("receive_transfer(): status %d received %d bytes.", sr_dbg("receive_transfer(): status %s received %d bytes.",
transfer->status, transfer->actual_length); libusb_error_name(transfer->status), transfer->actual_length);
/* Save incoming transfer before reusing the transfer struct. */ /* Save incoming transfer before reusing the transfer struct. */
unitsize = devc->sample_wide ? 2 : 1; unitsize = devc->sample_wide ? 2 : 1;