diff options
author | Gary E. Miller <gem@rellim.com> | 2016-05-25 23:35:53 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-05-25 23:35:53 -0700 |
commit | 94b6387bc00c6d53281fd3f25502103293e0418b (patch) | |
tree | db0d9f03fa94158a8b91f58bf5949b4e44a1259f /serial.c | |
parent | 56a2a6eb494c6dbc454bad518df8861c9258ad5b (diff) | |
download | gpsd-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |