]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/serial.c
add USBTMC device search helper
[libsigrok.git] / hardware / common / serial.c
index cfdf9156a56556467d3755ce6f13cd3d7adfe02f..6cf43f987f6bdec63d9d4f86824f5f95d955c88e 100644 (file)
@@ -278,14 +278,6 @@ SR_PRIV int serial_read(struct sr_serial_dev_inst *serial, void *buf,
 #else
        /* Returns the number of bytes read, or -1 upon failure. */
        ret = read(serial->fd, buf, count);
-       if (ret < 0)
-               /*
-                * Should be sr_err(), but that would yield lots of
-                * "Resource temporarily unavailable" messages.
-                */
-               sr_spew("Read error: %s (fd %d).", strerror(errno), serial->fd);
-       else
-               sr_spew("Read %d/%d bytes (fd %d).", ret, count, serial->fd);
 #endif
 
        return ret;