From: Benno Schulenberg Date: Mon, 9 Mar 2026 11:15:44 +0000 (+0100) Subject: waitpid: consistently write the abbreviation "PID" in all-uppercase X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9ce4074b2e3a9afe73f06e49ae12e593bf397d;p=thirdparty%2Futil-linux.git waitpid: consistently write the abbreviation "PID" in all-uppercase Also, use %d instead of %u, as all other comparable messages use %d. CC: Christian Goeschel Ndjomouo Signed-off-by: Benno Schulenberg --- diff --git a/misc-utils/waitpid.c b/misc-utils/waitpid.c index 865b537e9..d77a41c5e 100644 --- a/misc-utils/waitpid.c +++ b/misc-utils/waitpid.c @@ -74,7 +74,7 @@ static inline int get_pidfd(const struct waitpid_control *ctl, struct process_in if (pi->pidfd_ino) { fd = ul_get_valid_pidfd(pi->pid, pi->pidfd_ino); if (fd < 0 && ctl->verbose) - warnx(_("pidfd inode %"PRIu64" not found for pid %d"), + warnx(_("pidfd inode %"PRIu64" not found for PID %d"), pi->pidfd_ino, pi->pid); } else { fd = pidfd_open(pi->pid, 0); @@ -94,7 +94,7 @@ static void open_pidfds_or_err(const struct waitpid_control *ctl, struct process warnx(_("PID %d has exited, skipping"), pi->pid); continue; } - err_nosys(EXIT_FAILURE, _("could not open pid %u"), pi->pid); + err_nosys(EXIT_FAILURE, _("could not open PID %d"), pi->pid); } } }