From: Uwe Hermann Date: Fri, 3 Apr 2015 19:05:02 +0000 (+0200) Subject: fx2lafw: Use libusb_error_name() for reporting transfer status. X-Git-Tag: libsigrok-0.4.0~544 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0f2627632944d27fcd561a8b3a4713869b326232;p=libsigrok.git fx2lafw: Use libusb_error_name() for reporting transfer status. --- diff --git a/src/hardware/fx2lafw/protocol.c b/src/hardware/fx2lafw/protocol.c index fae80b72..70825878 100644 --- a/src/hardware/fx2lafw/protocol.c +++ b/src/hardware/fx2lafw/protocol.c @@ -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;