From fb48a42f032c3c28bec4cfcf8d4184172035f067 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Mon, 16 Mar 2020 16:17:58 +0000 Subject: [PATCH] Make autofs(5) timeout messages include affected process name and PID. MFC after: 2 weeks Sponsored by: DARPA, AFRL --- sys/fs/autofs/autofs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c index 2c5d54f15e7..08aff972aa9 100644 --- a/sys/fs/autofs/autofs.c +++ b/sys/fs/autofs/autofs.c @@ -468,8 +468,9 @@ autofs_trigger_one(struct autofs_node *anp, request_error = ar->ar_error; if (request_error != 0) { - AUTOFS_WARN("request for %s completed with error %d", - ar->ar_path, request_error); + AUTOFS_WARN("request for %s completed with error %d, " + "pid %d (%s)", ar->ar_path, request_error, + curproc->p_pid, curproc->p_comm); } wildcards = ar->ar_wildcards;