summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-10-18 13:21:59 +0200
committerDamien Miller <djm@mindrot.org>2020-10-18 13:34:20 +0200
commit9e2c4f64224f68fb84c49b5182e449f94b0dc985 (patch)
treeaa4a81152c6f6a3f06e466024680788f87069f56 /monitor.c
parentupstream: remove a level of macro indirection; ok markus@ (diff)
downloadopenssh-9e2c4f64224f68fb84c49b5182e449f94b0dc985.tar.xz
openssh-9e2c4f64224f68fb84c49b5182e449f94b0dc985.zip
upstream: variants of the log methods that append a ssherr.h string
from a supplied error code; ok markus@ OpenBSD-Commit-ID: aed98c4435d48d036ae6740300f6a8357b7cc0bf
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/monitor.c b/monitor.c
index 9f22f0681..c4e07ba4d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: monitor.c,v 1.215 2020/10/16 13:24:45 djm Exp $ */
+/* $OpenBSD: monitor.c,v 1.216 2020/10/18 11:21:59 djm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -461,9 +461,8 @@ monitor_read_log(struct monitor *pmonitor)
/* Log it */
if (log_level_name(level) == NULL)
- fatal("%s: invalid log level %u (corrupted message?)",
- __func__, level);
- sshlog(file, func, line, 0, level, "%s [preauth]", msg);
+ fatal_f("invalid log level %u (corrupted message?)", level);
+ sshlog(file, func, line, 0, level, NULL, "%s [preauth]", msg);
sshbuf_free(logmsg);
free(file);