Browse Source

Print actual error when in debug mode; ok henning@

OPENBSD_3_8
dtucker 19 years ago
parent
commit
4eaa821e76
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/client.c

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

@ -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> * 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); address = log_sockaddr((struct sockaddr *)&peer->addr->ss);
if (peer->lasterror == error) { if (peer->lasterror == error) {
log_debug("%s %s", operation, address);
log_debug("%s %s: %s", operation, address, strerror(error));
return; return;
} }
peer->lasterror = error; peer->lasterror = error;


Loading…
Cancel
Save