]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: include pid in LogVerbose spam
authordjm@openbsd.org <djm@openbsd.org>
Fri, 7 May 2021 04:11:51 +0000 (04:11 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 10 May 2021 00:58:11 +0000 (10:58 +1000)
OpenBSD-Commit-ID: aacb86f96ee90c7cb84ec27452374285f89a7f00

log.c

diff --git a/log.c b/log.c
index 165b486389dca5fc8b09d52f657b89542dfcd401..42c6f9a60d3e515174a06945c94b85b7ee8a27aa 100644 (file)
--- a/log.c
+++ b/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.58 2021/04/15 16:24:31 markus Exp $ */
+/* $OpenBSD: log.c,v 1.59 2021/05/07 04:11:51 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -466,8 +466,9 @@ sshlogv(const char *file, const char *func, int line, int showfunc,
        const char *cp;
        size_t i;
 
-       snprintf(tag, sizeof(tag), "%.48s:%.48s():%d",
-           (cp = strrchr(file, '/')) == NULL ? file : cp + 1, func, line);
+       snprintf(tag, sizeof(tag), "%.48s:%.48s():%d (pid=%ld)",
+           (cp = strrchr(file, '/')) == NULL ? file : cp + 1, func, line,
+           (long)getpid());
        for (i = 0; i < nlog_verbose; i++) {
                if (match_pattern_list(tag, log_verbose[i], 0) == 1) {
                        forced = 1;