From 4eaa821e766e327be175aa149f40aeb7ef4662cc Mon Sep 17 00:00:00 2001 From: dtucker <> Date: Mon, 11 Jul 2005 08:04:28 +0000 Subject: [PATCH] Print actual error when in debug mode; ok henning@ --- src/usr.sbin/ntpd/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/client.c b/src/usr.sbin/ntpd/client.c index d392c665..d7c535c7 100644 --- a/src/usr.sbin/ntpd/client.c +++ b/src/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 @@ -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;