summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-09-04 04:55:25 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-09-04 04:55:25 +0000
commit2fa951973faf3525bd458fc2fbd9d2500023505b (patch)
tree20236e600a9b4903f2a2dc9fdb6857fbd6e2f718
parent19efaa62e88542f01eb9322b3a0060801e83391d (diff)
correct function name in error messages
-rw-r--r--usr.bin/ssh/sshconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 13379f32765..7e5515ff961 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.264 2015/09/04 03:57:38 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.265 2015/09/04 04:55:24 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -422,7 +422,7 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop,
char ntop[NI_MAXHOST], strport[NI_MAXSERV];
struct addrinfo *ai;
- debug2("ssh_connect: needpriv %d", needpriv);
+ debug2("%s: needpriv %d", __func__, needpriv);
for (attempt = 0; attempt < connection_attempts; attempt++) {
if (attempt > 0) {
@@ -441,7 +441,7 @@ ssh_connect_direct(const char *host, struct addrinfo *aitop,
if (getnameinfo(ai->ai_addr, ai->ai_addrlen,
ntop, sizeof(ntop), strport, sizeof(strport),
NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
- error("ssh_connect: getnameinfo failed");
+ error("%s: getnameinfo failed", __func__);
continue;
}
debug("Connecting to %.200s [%.100s] port %s.",