[PATCH] waitpid: consistently write the abbreviation "PID" in all-uppercase
Benno Schulenberg <[email protected]> Mon, 9 Mar 2026 12:15:44 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
Also, use %d instead of %u, as all other comparable messages use %d. CC: Christian Goeschel Ndjomouo <[email protected]> Signed-off-by: Benno Schulenberg <[email protected]> --- misc-utils/waitpid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.53.0