diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-10-18 11:21:59 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-10-18 22:34:20 +1100 |
commit | 9e2c4f64224f68fb84c49b5182e449f94b0dc985 (patch) | |
tree | aa4a81152c6f6a3f06e466024680788f87069f56 /monitor.c | |
parent | 28cb0a4b03940d1ee576eb767a81a4113bdc917e (diff) |
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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |