diff options
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 93bd3189d..dcbdb8e60 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1632,7 +1632,7 @@ update_local_clock(peer_t *p) | |||
1632 | if (adjtimex(&tmx) < 0) | 1632 | if (adjtimex(&tmx) < 0) |
1633 | bb_simple_perror_msg_and_die("adjtimex"); | 1633 | bb_simple_perror_msg_and_die("adjtimex"); |
1634 | bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld", | 1634 | bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld", |
1635 | tmx.freq, tmx.offset, tmx.status, tmx.constant); | 1635 | (long)tmx.freq, (long)tmx.offset, tmx.status, (long)tmx.constant); |
1636 | } | 1636 | } |
1637 | 1637 | ||
1638 | memset(&tmx, 0, sizeof(tmx)); | 1638 | memset(&tmx, 0, sizeof(tmx)); |
@@ -1747,7 +1747,7 @@ update_local_clock(peer_t *p) | |||
1747 | * Not sure why. Perhaps it is normal. | 1747 | * Not sure why. Perhaps it is normal. |
1748 | */ | 1748 | */ |
1749 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", | 1749 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", |
1750 | rc, tmx.freq, tmx.offset, tmx.status); | 1750 | rc, (long)tmx.freq, (long)tmx.offset, tmx.status); |
1751 | G.kernel_freq_drift = tmx.freq / 65536; | 1751 | G.kernel_freq_drift = tmx.freq / 65536; |
1752 | VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d", | 1752 | VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d", |
1753 | p->p_dotted, | 1753 | p->p_dotted, |