[openssh-commits] [openssh] 03/03: sync regress/misc/sk-dummy/fatal.c
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat Oct 17 22:47:59 AEDT 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 999d7cb79a3a73d92a6dfbf174c33da0d984c7a2
Author: Damien Miller <djm at mindrot.org>
Date: Sat Oct 17 22:47:52 2020 +1100
sync regress/misc/sk-dummy/fatal.c
---
regress/misc/sk-dummy/fatal.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/regress/misc/sk-dummy/fatal.c b/regress/misc/sk-dummy/fatal.c
index f711f6e9..0aea5b46 100644
--- a/regress/misc/sk-dummy/fatal.c
+++ b/regress/misc/sk-dummy/fatal.c
@@ -7,14 +7,17 @@
#include <stdarg.h>
#include <unistd.h>
-void
-sshfatal(const char *file, const char *func, int line, const char *fmt, ...);
+void sshfatal(const char *file, const char *func, int line, int showfunc,
+ LogLevel level, const char *fmt, ...);
void
-sshfatal(const char *file, const char *func, int line, const char *fmt, ...)
+sshfatal(const char *file, const char *func, int line, int showfunc,
+ LogLevel level, const char *fmt, ...)
{
va_list ap;
+ if (showfunc)
+ fprintf(stderr, "%s: ", func);
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list