X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fikalogic-scanalogic2%2Fprotocol.c;h=03d5d1bf32df778c0f824b29a8fb5fbc672d1933;hb=9cfc695ffe5f04622f61acb98ea4ac91c3f4ffc3;hp=6db7026115faa0b31164ee9676986fcf8bd60938;hpb=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52;p=libsigrok.git diff --git a/src/hardware/ikalogic-scanalogic2/protocol.c b/src/hardware/ikalogic-scanalogic2/protocol.c index 6db70261..03d5d1bf 100644 --- a/src/hardware/ikalogic-scanalogic2/protocol.c +++ b/src/hardware/ikalogic-scanalogic2/protocol.c @@ -270,7 +270,8 @@ SR_PRIV void LIBUSB_CALL sl2_receive_transfer_in( struct libusb_transfer *transf devc = sdi->priv; if (transfer->status != LIBUSB_TRANSFER_COMPLETED) { - sr_err("Transfer to device failed: %i.", transfer->status); + sr_err("Transfer to device failed: %s.", + libusb_error_name(transfer->status)); devc->transfer_error = TRUE; return; } @@ -400,7 +401,8 @@ SR_PRIV void LIBUSB_CALL sl2_receive_transfer_out( struct libusb_transfer *trans devc = sdi->priv; if (transfer->status != LIBUSB_TRANSFER_COMPLETED) { - sr_err("Transfer to device failed: %i.", transfer->status); + sr_err("Transfer to device failed: %s.", + libusb_error_name(transfer->status)); devc->transfer_error = TRUE; return; }