serial: Output successful open and the FD.

This commit is contained in:
Uwe Hermann 2012-11-02 18:49:00 +01:00
parent 20af610683
commit 83e3c368c6
1 changed files with 2 additions and 0 deletions

View File

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