summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-05-25 23:35:53 -0700
committerGary E. Miller <gem@rellim.com>2016-05-25 23:35:53 -0700
commit94b6387bc00c6d53281fd3f25502103293e0418b (patch)
treedb0d9f03fa94158a8b91f58bf5949b4e44a1259f /serial.c
parent56a2a6eb494c6dbc454bad518df8861c9258ad5b (diff)
downloadgpsd-94b6387bc00c6d53281fd3f25502103293e0418b.tar.gz
Add info on sourcetype to the error log on failure.
The old log, on some hosts, was: gpsd:ERROR: SER: error setting port attributes: Invalid argument
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index cc8097f9..32216a02 100644
--- a/serial.c
+++ b/serial.c
@@ -319,8 +319,8 @@ void gpsd_set_speed(struct gps_device_t *session,
}
if (tcsetattr(session->gpsdata.gps_fd, TCSANOW, &session->ttyset) != 0) {
gpsd_log(&session->context->errout, LOG_ERROR,
- "SER: error setting port attributes: %s\n",
- strerror(errno));
+ "SER: error setting port attributes: %s, sourcetype: %d\n",
+ strerror(errno), session->sourcetype);
return;
}