From: Uwe Hermann Date: Fri, 2 Nov 2012 17:49:00 +0000 (+0100) Subject: serial: Output successful open and the FD. X-Git-Tag: dsupstream~593 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=83e3c368c67d6bbc86015fc47a7f7e39160b3baa;p=libsigrok.git serial: Output successful open and the FD. --- diff --git a/hardware/common/serial.c b/hardware/common/serial.c index c39b2ca5..5a1d21af 100644 --- a/hardware/common/serial.c +++ b/hardware/common/serial.c @@ -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;