diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-10-16 02:37:12 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-10-17 00:37:13 +1100 |
commit | acadbb3402b70f72f14d9a6930ad41be97c2f9dc (patch) | |
tree | ffaabf160e0b181e826757f563f0574e18d8c5ec /sshconnect2.c | |
parent | 95b0bcfd1531d59e056ae8af27bb741391f26ab0 (diff) | |
download | openssh-git-acadbb3402b70f72f14d9a6930ad41be97c2f9dc.tar.gz |
upstream: use do_log2 instead of function pointers to different log
functions
OpenBSD-Commit-ID: 88077b826d348c58352a6b394755520f4e484480
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 6da2248f..9e3bd05c 100644 --- a/sshconnect2.c +++ b/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.329 2020/10/07 02:22:23 djm Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.330 2020/10/16 02:37:12 djm Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1515,8 +1515,9 @@ load_identity_file(Identity *id) struct stat st; if (stat(id->filename, &st) == -1) { - (id->userprovided ? logit : debug3)("no such identity: %s: %s", - id->filename, strerror(errno)); + do_log2(id->userprovided ? + SYSLOG_LEVEL_INFO : SYSLOG_LEVEL_DEBUG3, + "no such identity: %s: %s", id->filename, strerror(errno)); return NULL; } snprintf(prompt, sizeof prompt, |