]> sigrok.org Git - libsigrok.git/commitdiff
serial: Output successful open and the FD.
authorUwe Hermann <redacted>
Fri, 2 Nov 2012 17:49:00 +0000 (18:49 +0100)
committerUwe Hermann <redacted>
Fri, 2 Nov 2012 17:49:00 +0000 (18:49 +0100)
hardware/common/serial.c

index c39b2ca57cbec99c9f330b57aa2834ab071ab8d5..5a1d21af90c4cbebc9a593847f7b0fe1634c51e2 100644 (file)
@@ -126,6 +126,8 @@ SR_PRIV int serial_open(const char *pathname, int flags)
                 */
                sr_dbg("Error opening serial port '%s': %s.", pathname,
                       strerror(errno));
+       } else {
+               sr_dbg("Opened serial port '%s' as FD %d.", pathname, fd);
        }
 
        return fd;