]> sigrok.org Git - libsigrok.git/commitdiff
saleae-logic16: Show libusb transfer status name instead of code.
authorBert Vermeulen <redacted>
Thu, 27 Nov 2014 23:21:10 +0000 (00:21 +0100)
committerBert Vermeulen <redacted>
Thu, 27 Nov 2014 23:21:56 +0000 (00:21 +0100)
src/hardware/saleae-logic16/protocol.c

index 839397f8cdc83c32462268aeaf2e28dc7e641e25..9e5806e0ae4c89c620121e158b345753d38022dd 100644 (file)
@@ -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: