summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2023-07-10 17:27:54 +0200
committerDenys Vlasenko2023-07-10 17:29:38 +0200
commit9fc5933b100694174071c7c4697c70095799bfd0 (patch)
tree01cacc6e2aca8ab4499f628aea6d23178f814f8e /networking
parent69d33db445964727b053068cfaa4d417767f8960 (diff)
downloadbusybox-9fc5933b100694174071c7c4697c70095799bfd0.zip
busybox-9fc5933b100694174071c7c4697c70095799bfd0.tar.gz
ntpd: fix a warning on 32-bit arch build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ntpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 93bd318..dcbdb8e 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1632,7 +1632,7 @@ update_local_clock(peer_t *p)
if (adjtimex(&tmx) < 0)
bb_simple_perror_msg_and_die("adjtimex");
bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld",
- tmx.freq, tmx.offset, tmx.status, tmx.constant);
+ (long)tmx.freq, (long)tmx.offset, tmx.status, (long)tmx.constant);
}
memset(&tmx, 0, sizeof(tmx));
@@ -1747,7 +1747,7 @@ update_local_clock(peer_t *p)
* Not sure why. Perhaps it is normal.
*/
VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x",
- rc, tmx.freq, tmx.offset, tmx.status);
+ rc, (long)tmx.freq, (long)tmx.offset, tmx.status);
G.kernel_freq_drift = tmx.freq / 65536;
VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d",
p->p_dotted,