]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: Use libusb_error_name() for reporting transfer status.
authorUwe Hermann <redacted>
Fri, 3 Apr 2015 19:05:02 +0000 (21:05 +0200)
committerUwe Hermann <redacted>
Fri, 3 Apr 2015 19:05:02 +0000 (21:05 +0200)
src/hardware/fx2lafw/protocol.c

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