~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to networking/ntpd.c

  • Committer: Denys Vlasenko
  • Date: 2023-07-10 15:29:38 UTC
  • Revision ID: git-v1:9fc5933b100694174071c7c4697c70095799bfd0
ntpd: fix a warning on 32-bit arch build

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1632
1632
                if (adjtimex(&tmx) < 0)
1633
1633
                        bb_simple_perror_msg_and_die("adjtimex");
1634
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
1638
        memset(&tmx, 0, sizeof(tmx));
1747
1747
         * Not sure why. Perhaps it is normal.
1748
1748
         */
1749
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
1751
        G.kernel_freq_drift = tmx.freq / 65536;
1752
1752
        VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d",
1753
1753
                        p->p_dotted,