Browse Source

lof replies with log_debug so one gets increased verbosity when in

foreground/debug mode
OPENBSD_3_6
henning 20 years ago
parent
commit
b6bb1936a0
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/usr.sbin/ntpd/client.c

+ 5
- 1
src/usr.sbin/ntpd/client.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: client.c,v 1.16 2004/07/07 08:07:02 alexander Exp $ */
/* $OpenBSD: client.c,v 1.17 2004/07/08 01:20:21 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -160,6 +160,10 @@ client_dispatch(struct ntp_peer *p)
p->trustlevel++; p->trustlevel++;
} }
log_debug("received reply from %s: offset %f delay %f",
log_sockaddr((struct sockaddr *)&fsa), p->reply[p->shift].offset,
p->reply[p->shift].delay);
if (++p->shift >= OFFSET_ARRAY_SIZE) if (++p->shift >= OFFSET_ARRAY_SIZE)
p->shift = 0; p->shift = 0;


Loading…
Cancel
Save