From: Joel Holdsworth Date: Thu, 6 Dec 2012 21:31:37 +0000 (+0000) Subject: fx2lafw: Don't say "Device came back" when it didn't X-Git-Tag: dsupstream~470 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=378abfeac6cc94d88dc82b8481dec9c9f691f3da;p=libsigrok.git fx2lafw: Don't say "Device came back" when it didn't --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 648b13f4..fb8bae8f 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -542,7 +542,6 @@ static int hw_dev_open(struct sr_dev_inst *sdi) timediff_ms = timediff_us / 1000; sr_spew("fx2lafw: waited %" PRIi64 " ms", timediff_ms); } - sr_info("fx2lafw: Device came back after %d ms.", timediff_ms); } else { ret = fx2lafw_dev_open(sdi); } @@ -550,7 +549,11 @@ static int hw_dev_open(struct sr_dev_inst *sdi) if (ret != SR_OK) { sr_err("fx2lafw: Unable to open device."); return SR_ERR; + } else { + sr_info("fx2lafw: Device came back after %d ms.", + timediff_ms); } + devc = sdi->priv; ret = libusb_claim_interface(devc->usb->devhdl, USB_INTERFACE);