[Git][NTPsec/ntpsec][master] Fix printf warning %lu vs %u, 32 vs 64
Hal Murray
gitlab at mg.gitlab.com
Sat Dec 30 06:49:14 UTC 2017
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
ad49acac by Hal Murray at 2017-12-29T22:46:19-08:00
Fix printf warning %lu vs %u, 32 vs 64
- - - - -
1 changed file:
- ntpd/ntp_loopfilter.c
Changes:
=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -6,6 +6,7 @@
*/
#include "config.h"
+#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <ctype.h>
@@ -1002,9 +1003,9 @@ rstclock(
double offset /* new offset */
)
{
- DPRINT(2, ("local_clock: mu %lu state %d poll %d count %d\n",
- current_time - clock_epoch, trans, sys_poll,
- tc_counter));
+ DPRINT(2, ("local_clock: mu %" PRIu32 " state %d poll %d count %d\n",
+ current_time - clock_epoch, trans, sys_poll,
+ tc_counter));
if (trans != state && trans != EVNT_FSET)
report_event(trans, NULL, NULL);
state = trans;
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ad49acaca77b274692b4e8271788e6c22d302765
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ad49acaca77b274692b4e8271788e6c22d302765
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/20171230/405bc33c/attachment.html>
More information about the vc
mailing list