diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-06 19:16:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-06 19:16:50 +0100 |
commit | 8be49c3a800a2c43d71d29fc1b0b61567ed4541d (patch) | |
tree | 2973988bace02057f1fbd5b5a1266afdd85ca76d /networking/ntpd.c | |
parent | bb8d7db597e73f8bd7cb10e3d319be4c93128ccc (diff) | |
download | busybox-w32-8be49c3a800a2c43d71d29fc1b0b61567ed4541d.tar.gz busybox-w32-8be49c3a800a2c43d71d29fc1b0b61567ed4541d.tar.bz2 busybox-w32-8be49c3a800a2c43d71d29fc1b0b61567ed4541d.zip |
ntpd: tweak log messages format
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r-- | networking/ntpd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index e9805087c..9c16b2b6b 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1476,8 +1476,8 @@ update_local_clock(peer_t *p) | |||
1476 | memset(&tmx, 0, sizeof(tmx)); | 1476 | memset(&tmx, 0, sizeof(tmx)); |
1477 | if (adjtimex(&tmx) < 0) | 1477 | if (adjtimex(&tmx) < 0) |
1478 | bb_perror_msg_and_die("adjtimex"); | 1478 | bb_perror_msg_and_die("adjtimex"); |
1479 | bb_error_msg("p adjtimex freq:%ld offset:%+ld constant:%ld status:0x%x", | 1479 | bb_error_msg("p adjtimex freq:%ld offset:%+ld status:0x%x tc:%ld", |
1480 | tmx.freq, tmx.offset, tmx.constant, tmx.status); | 1480 | tmx.freq, tmx.offset, tmx.status, tmx.constant); |
1481 | } | 1481 | } |
1482 | 1482 | ||
1483 | memset(&tmx, 0, sizeof(tmx)); | 1483 | memset(&tmx, 0, sizeof(tmx)); |
@@ -1667,7 +1667,7 @@ recv_and_process_peer_pkt(peer_t *p) | |||
1667 | 1667 | ||
1668 | p->reachable_bits |= 1; | 1668 | p->reachable_bits |= 1; |
1669 | if ((MAX_VERBOSE && G.verbose) || (option_mask32 & OPT_w)) { | 1669 | if ((MAX_VERBOSE && G.verbose) || (option_mask32 & OPT_w)) { |
1670 | bb_error_msg("reply from %s: reach 0x%02x offset %+f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f", | 1670 | bb_error_msg("reply from:%s reach:0x%02x offset:%+f delay:%f status:0x%02x strat:%d refid:0x%08x rootdelay:%f", |
1671 | p->p_dotted, | 1671 | p->p_dotted, |
1672 | p->reachable_bits, | 1672 | p->reachable_bits, |
1673 | datapoint->d_offset, | 1673 | datapoint->d_offset, |
@@ -2100,7 +2100,7 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv) | |||
2100 | if (--timeout <= 0) | 2100 | if (--timeout <= 0) |
2101 | goto did_poll; | 2101 | goto did_poll; |
2102 | } | 2102 | } |
2103 | bb_error_msg("poll %us, sockets:%u, poll interval:%us", timeout, i, 1 << G.poll_exp); | 2103 | bb_error_msg("poll:%us sockets:%u interval:%us", timeout, i, 1 << G.poll_exp); |
2104 | } | 2104 | } |
2105 | nfds = poll(pfd, i, timeout * 1000); | 2105 | nfds = poll(pfd, i, timeout * 1000); |
2106 | did_poll: | 2106 | did_poll: |