diff options
author | 2020-10-16 02:37:12 +0000 | |
---|---|---|
committer | 2020-10-16 02:37:12 +0000 | |
commit | 9c206c4ff74224fb4a55f60bbf9d26fe0da72deb (patch) | |
tree | 332885c86d2e9b0ced1b31677105ce46ab0ef82e /usr.bin/ssh/sshconnect2.c | |
parent | Refactor a bunch of oscpcheck for single return to clean it up, (diff) | |
download | wireguard-openbsd-9c206c4ff74224fb4a55f60bbf9d26fe0da72deb.tar.xz wireguard-openbsd-9c206c4ff74224fb4a55f60bbf9d26fe0da72deb.zip |
use do_log2 instead of function pointers to different log functions
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index 7084f5b7650..476773faa02 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/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. @@ -1508,8 +1508,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, |