[Git][NTPsec/ntpsec][master] Fixed unnecessary printfs in DPRINT macros
Ian Bruene
gitlab at mg.gitlab.com
Mon Jun 5 20:49:56 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
657d6d7d by Ian Bruene at 2017-06-05T15:42:21-05:00
Fixed unnecessary printfs in DPRINT macros
- - - - -
2 changed files:
- ntpd/refclock_jjy.c
- ntpd/refclock_trimble.c
Changes:
=====================================
ntpd/refclock_jjy.c
=====================================
--- a/ntpd/refclock_jjy.c
+++ b/ntpd/refclock_jjy.c
@@ -412,7 +412,7 @@ jjy_start ( int unit, struct peer *peer )
int fd ;
char sDeviceName [ sizeof(DEVICE) + 10 ], sLog [ MAX_LOGTEXT ] ;
- DPRINT(1, printf("refclock_jjy.c: jjy_start: %s mode=%u dev=%s unit=%d\n",
+ DPRINT(1, ("refclock_jjy.c: jjy_start: %s mode=%u dev=%s unit=%d\n",
socktoa(&peer->srcadr), peer->ttl, DEVICE, unit )) ;
/* Allocate memory for the unit structure */
=====================================
ntpd/refclock_trimble.c
=====================================
--- a/ntpd/refclock_trimble.c
+++ b/ntpd/refclock_trimble.c
@@ -1253,7 +1253,7 @@ HW_poll (
IGNORE(write (pp->io.fd, "", 1));
if (ioctl(pp->io.fd, TIOCMSET, &x) < 0) {
- DPRINT(1, printf("Trimble HW_poll: unit %d: SET \n", up->unit));
+ DPRINT(1, ("Trimble HW_poll: unit %d: SET \n", up->unit));
msyslog(LOG_ERR,
"Trimble(%d) HW_poll: ioctl(fd, SET, RTS_on): %m",
up->unit);
@@ -1266,7 +1266,7 @@ HW_poll (
get_systime(&pp->lastrec);
if (ioctl(pp->io.fd, TIOCMSET, &x) == -1) {
- DPRINT(1, printf("Trimble HW_poll: unit %d: UNSET \n", up->unit));
+ DPRINT(1, ("Trimble HW_poll: unit %d: UNSET \n", up->unit));
msyslog(LOG_ERR,
"Trimble(%d) HW_poll: ioctl(fd, UNSET, RTS_off): %m",
up->unit);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/657d6d7daa3aa673d2dcf8b5bdcd63e7f487164c
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/657d6d7daa3aa673d2dcf8b5bdcd63e7f487164c
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/20170605/39263b88/attachment.html>
More information about the vc
mailing list