git: 4fe1317fd986 - stable/14 - rcorder: Fix grammar in warning about loops
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Oct 2025 12:21:38 UTC
The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=4fe1317fd9865c23c3424467d07cdfc1eaebd640 commit 4fe1317fd9865c23c3424467d07cdfc1eaebd640 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2025-10-08 10:07:01 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-10-09 12:20:53 +0000 rcorder: Fix grammar in warning about loops MFC after: 1 week Reviewed by: ae Differential Revision: https://reviews.freebsd.org/D52951 (cherry picked from commit d96f9a4688668ececc09c61dcf6b539a55112cc0) --- sbin/rcorder/rcorder.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/rcorder/rcorder.c b/sbin/rcorder/rcorder.c index 87b0e873c7ae..3d2a67c82a5a 100644 --- a/sbin/rcorder/rcorder.c +++ b/sbin/rcorder/rcorder.c @@ -980,9 +980,11 @@ do_file(filenode *fnode, strnodelist *stack_ptr) fnode->last->next = fnode->next; } - if (fnode->issues_count) - warnx("`%s' was seen in circular dependencies for %d times.", - fnode->filename, fnode->issues_count); + if (fnode->issues_count) { + warnx("`%s' was seen in circular dependencies %d time%s.", + fnode->filename, fnode->issues_count, + fnode->issues_count > 1 ? "s" : ""); + } DPRINTF((stderr, "nuking %s\n", fnode->filename)); }