[Git][NTPsec/ntpsec][master] Responding to GitLab issue #55 (no error if /dev/pps0 cannot be found)
Eric S. Raymond
gitlab at mg.gitlab.com
Sat Feb 16 14:38:36 UTC 2019
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
e0c05c8f by Eric S. Raymond at 2019-02-16T14:38:18Z
Responding to GitLab issue #55 (no error if /dev/pps0 cannot be found)
...make the error messaage a little clearer.
- - - - -
1 changed file:
- ntpd/refclock_pps.c
Changes:
=====================================
ntpd/refclock_pps.c
=====================================
@@ -139,13 +139,13 @@ pps_start(
/*
* Open PPS device. This can be any serial or parallel port and
- * not necessarily the port used for the associated radio.
+ * not necessarily the port used for the associated clock.
*/
snprintf(device, sizeof(device), DEVICE, unit);
- up->fddev = open(peer->cfg.ppspath ? peer->cfg.ppspath : device,
- O_RDWR);
+ char *pps_path = peer->cfg.ppspath ? peer->cfg.ppspath : device;
+ up->fddev = open(pps_path, O_RDWR);
if (up->fddev <= 0) {
- msyslog(LOG_ERR, "REFCLOCK: refclock_pps: %m");
+ msyslog(LOG_ERR, "REFCLOCK: refclock_pps: %s open failed: %m", pps_path);
return false;
}
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e0c05c8fbed746a5008f66b5ddb80990ab8d4641
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e0c05c8fbed746a5008f66b5ddb80990ab8d4641
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190216/428dfce9/attachment.html>
More information about the vc
mailing list