From: djm@openbsd.org Date: Fri, 7 May 2021 04:11:51 +0000 (+0000) Subject: upstream: include pid in LogVerbose spam X-Git-Tag: V_8_7_P1~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3cc4d650ce3e59f3e370b101778b0e8f1c02c4d;p=thirdparty%2Fopenssh-portable.git upstream: include pid in LogVerbose spam OpenBSD-Commit-ID: aacb86f96ee90c7cb84ec27452374285f89a7f00 --- diff --git a/log.c b/log.c index 165b48638..42c6f9a60 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 * Copyright (c) 1995 Tatu Ylonen , 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;