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/gitweb/?a=commitdiff_plain;h=83e3c368c67d6bbc86015fc47a7f7e39160b3baa;hp=20af610683e4d7fc22deaa26e7b92730057405cd;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;