serial: Output successful open and the FD.
This commit is contained in:
parent
20af610683
commit
83e3c368c6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue