Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-07-10 18:27:54 +0300
committerDenys Vlasenko <vda.linux@googlemail.com>2023-07-10 18:29:38 +0300
commit9fc5933b100694174071c7c4697c70095799bfd0 (patch)
tree01cacc6e2aca8ab4499f628aea6d23178f814f8e
parent69d33db445964727b053068cfaa4d417767f8960 (diff)
ntpd: fix a warning on 32-bit arch build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/ntpd.c4
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)
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,