git: 7bc6ce41d833 - stable/13 - ldd: clarify format options

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 23 Mar 2023 12:42:21 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=7bc6ce41d83353efa088942e3f3add38b98c3ada

commit 7bc6ce41d83353efa088942e3f3add38b98c3ada
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2023-03-21 14:14:03 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-03-23 12:41:35 +0000

    ldd: clarify format options
    
    -f may be specified zero, one, or two times.  Make this clear in the
    usage.
    
    Reviewed by:    markj, kib
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D34733
    
    (cherry picked from commit e9f8723c30fc390f1282f5286d57c090ed9e5925)
---
 usr.bin/ldd/ldd.1 | 4 ++--
 usr.bin/ldd/ldd.c | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/usr.bin/ldd/ldd.1 b/usr.bin/ldd/ldd.1
index d263eabcf4ff..447b6c752e9f 100644
--- a/usr.bin/ldd/ldd.1
+++ b/usr.bin/ldd/ldd.1
@@ -1,6 +1,6 @@
 .\" $FreeBSD$
 .\"
-.Dd August 28, 2021
+.Dd March 21, 2023
 .Dt LDD 1
 .Os
 .Sh NAME
@@ -9,7 +9,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl a
-.Op Fl f Ar format
+.Op Fl f Ar format Op Fl f Ar format
 .Ar program ...
 .Sh DESCRIPTION
 The
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c
index 2cd2a4c72324..4f5555e34610 100644
--- a/usr.bin/ldd/ldd.c
+++ b/usr.bin/ldd/ldd.c
@@ -260,7 +260,8 @@ static void
 usage(void)
 {
 
-	fprintf(stderr, "usage: ldd [-a] [-f format] program ...\n");
+	fprintf(stderr,
+	    "usage: ldd [-a] [-f format [-f format]] program ...\n");
 	exit(1);
 }