X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fikalogic-scanalogic2%2Fprotocol.c;h=03d5d1bf32df778c0f824b29a8fb5fbc672d1933;hb=9cfc695ffe5f04622f61acb98ea4ac91c3f4ffc3;hp=90c16ef740e68b650e5ab55d8bfd8469fb9012ac;hpb=338143ea0371133c2b3f56bb2cc5e8726c0141d8;p=libsigrok.git diff --git a/src/hardware/ikalogic-scanalogic2/protocol.c b/src/hardware/ikalogic-scanalogic2/protocol.c index 90c16ef7..03d5d1bf 100644 --- a/src/hardware/ikalogic-scanalogic2/protocol.c +++ b/src/hardware/ikalogic-scanalogic2/protocol.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" extern struct sr_dev_driver ikalogic_scanalogic2_driver_info; @@ -269,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; } @@ -399,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; }