aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-03-21 14:14:03 +0000
committerEd Maste <emaste@FreeBSD.org>2023-03-23 12:41:35 +0000
commit7bc6ce41d83353efa088942e3f3add38b98c3ada (patch)
tree01e27caacb3dc4beb01d2e2b2149d024bb6003a4
parente7d9a68e8d382c3e07ede63039aa46f9747e01b3 (diff)
downloadsrc-7bc6ce41d83353efa088942e3f3add38b98c3ada.tar.gz
src-7bc6ce41d83353efa088942e3f3add38b98c3ada.zip
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)
-rw-r--r--usr.bin/ldd/ldd.14
-rw-r--r--usr.bin/ldd/ldd.c3
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);
}