summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-05-07 04:11:52 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-05-07 04:11:52 +0000
commiteb22e78dd64d903a0f737e4d5dc2aad55ed762dd (patch)
tree0bfdaa89261c04969d65ad93d50a43d35f36d134
parentfef55e02ccafb6fb1de5f95d370342c41a69ac57 (diff)
include pid in LogVerbose spam
-rw-r--r--usr.bin/ssh/log.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ssh/log.c b/usr.bin/ssh/log.c
index 0f3f151e396..c9e4b60fff1 100644
--- a/usr.bin/ssh/log.c
+++ b/usr.bin/ssh/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
@@ -424,8 +424,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;