summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2004-07-06 18:45:30 +0000
committerJason Wright <jason@cvs.openbsd.org>2004-07-06 18:45:30 +0000
commit35c31cefd7bbb3e404dd3efb0d8c8fe1e602f4df (patch)
tree527ee40738589b1cbd2f8c22ce6090edba8916e1
parentcf76ca40793016c665f14c879486b5830f022369 (diff)
log host packet was received from (originally using a long convoluted
function until henning showed me the light... log_sockaddr... nifty); this diff is from henning and should be henning ok =)
-rw-r--r--usr.sbin/ntpd/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index 71bf9580bad..d903f02c532 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.8 2004/07/06 17:40:32 naddy Exp $ */
+/* $OpenBSD: client.c,v 1.9 2004/07/06 18:45:29 jason Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -144,7 +144,8 @@ client_dispatch(struct ntp_peer *p)
p->next = time(NULL) + INTERVAL_QUERY;
p->deadline = 0;
- log_debug("reply received: offset %f delay %f", p->offset[p->shift],
+ log_debug("reply received from %s: offset %f delay %f",
+ log_sockaddr((struct sockaddr *)&fsa), p->offset[p->shift],
p->delay[p->shift]);
if (++p->shift >= OFFSET_ARRAY_SIZE) {