From 074e8dcba76ac2a313d6a14ca2289e648f926b25 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 4 Jan 2010 23:58:13 +0100 Subject: ntpd: make -w less cumbersome to use function old new delta packed_usage 26767 26779 +12 recv_and_process_peer_pkt 808 817 +9 Signed-off-by: Denys Vlasenko --- networking/ntpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking') diff --git a/networking/ntpd.c b/networking/ntpd.c index 84ee54307..ab1c58c97 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -1466,7 +1466,7 @@ recv_and_process_peer_pkt(peer_t *p) } p->reachable_bits |= 1; - VERB1 { + if ((MAX_VERBOSE && G.verbose) || (option_mask32 & OPT_w)) { bb_error_msg("reply from %s: reach 0x%02x offset %f delay %f status 0x%02x strat %d refid 0x%08x rootdelay %f", p->p_dotted, p->reachable_bits, @@ -1733,7 +1733,7 @@ static NOINLINE void ntp_init(char **argv) /* Parse options */ peers = NULL; - opt_complementary = "dd:p::"; /* d: counter, p: list */ + opt_complementary = "dd:p::wn"; /* d: counter; p: list; -w implies -n */ opts = getopt32(argv, "nqNx" /* compat */ "wp:"IF_FEATURE_NTPD_SERVER("l") /* NOT compat */ -- cgit v1.2.3