summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2005-07-11 08:04:29 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2005-07-11 08:04:29 +0000
commit640e0a571be67f304c3012b80460817fd86bf4da (patch)
tree8a1dfd434c440ba9245c705bbc2eaccb90029c43 /usr.sbin
parent8433b1c02708518b28d97f9d042ec547a18a3fcf (diff)
Print actual error when in debug mode; ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index d392c665897..d7c535c7296 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.63 2005/07/06 09:54:24 dtucker Exp $ */
+/* $OpenBSD: client.c,v 1.64 2005/07/11 08:04:28 dtucker Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -334,7 +334,7 @@ client_log_error(struct ntp_peer *peer, const char *operation, int error)
address = log_sockaddr((struct sockaddr *)&peer->addr->ss);
if (peer->lasterror == error) {
- log_debug("%s %s", operation, address);
+ log_debug("%s %s: %s", operation, address, strerror(error));
return;
}
peer->lasterror = error;