From: djm Date: Fri, 7 May 2021 04:11:51 +0000 (+0000) Subject: include pid in LogVerbose spam X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=183c6ee8c8232e4b943d3768f7fa09c3a513fd95;p=openbsd include pid in LogVerbose spam --- 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;