From 9ea50f6a02ec005cb3eddf972b68ed5bd8820cef Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sun, 14 Jan 2024 13:37:30 -0800 Subject: [PATCH] Fix missing printf arg in fork_func This should have been part of: 2024-01-13 Add fork_func.{c,h} ebfe5c88da4403cd45ea27c2189957ad7362feae Reported by: Coverity scan --- util/fork_func.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/fork_func.c b/util/fork_func.c index 77d7bd1c..5aed378d 100644 --- a/util/fork_func.c +++ b/util/fork_func.c @@ -68,7 +68,8 @@ fork_func_wait(pid_t pid) warn0("pid %jd: terminated with signal %d", (intmax_t)pid, WTERMSIG(status)); else - warn0("pid %jd: exited for an unknown reason"); + warn0("pid %jd: exited for an unknown reason", + (intmax_t)pid); } err0: