]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
waitpid: consistently write the abbreviation "PID" in all-uppercase
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 9 Mar 2026 11:15:44 +0000 (12:15 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Mar 2026 10:12:16 +0000 (11:12 +0100)
Also, use %d instead of %u, as all other comparable messages use %d.

CC: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
misc-utils/waitpid.c

index 865b537e9170d036f05e32999c0de65cd18334af..d77a41c5ea26841666f1d5c7fd8317215a4cac58 100644 (file)
@@ -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);
                }
        }
 }