summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2021-05-07 04:11:51 +0000
committerDamien Miller <djm@mindrot.org>2021-05-10 10:58:11 +1000
commitd3cc4d650ce3e59f3e370b101778b0e8f1c02c4d (patch)
tree1d386a7aa45240a419aba63c4b3387008b69ccf2 /log.c
parente3c032333be5fdbbaf2751f6f478e044922b4ec4 (diff)
upstream: include pid in LogVerbose spam
OpenBSD-Commit-ID: aacb86f96ee90c7cb84ec27452374285f89a7f00
Diffstat (limited to 'log.c')
-rw-r--r--log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/log.c b/log.c
index 165b4863..42c6f9a6 100644
--- 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;