From: Bert Vermeulen Date: Thu, 27 Nov 2014 23:21:10 +0000 (+0100) Subject: saleae-logic16: Show libusb transfer status name instead of code. X-Git-Tag: libsigrok-0.4.0~703 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=974fb0fffaffb0b2d1437ee280e4308a252741a0;p=libsigrok.git saleae-logic16: Show libusb transfer status name instead of code. --- diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index 839397f8..9e5806e0 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -726,8 +726,8 @@ SR_PRIV void logic16_receive_transfer(struct libusb_transfer *transfer) return; } - sr_info("receive_transfer(): status %d received %d bytes.", - transfer->status, transfer->actual_length); + sr_info("receive_transfer(): status %s received %d bytes.", + libusb_error_name(transfer->status), transfer->actual_length); switch (transfer->status) { case LIBUSB_TRANSFER_NO_DEVICE: