From eb22e78dd64d903a0f737e4d5dc2aad55ed762dd Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 7 May 2021 04:11:52 +0000 Subject: include pid in LogVerbose spam --- usr.bin/ssh/log.c | 7 ++++--- 1 file 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 * Copyright (c) 1995 Tatu Ylonen , 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; -- cgit v1.2.3