From 0f2627632944d27fcd561a8b3a4713869b326232 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 3 Apr 2015 21:05:02 +0200 Subject: [PATCH] fx2lafw: Use libusb_error_name() for reporting transfer status. --- src/hardware/fx2lafw/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;