summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2019-12-06 19:31:52 +0000
committerchristos <christos@NetBSD.org>2019-12-06 19:31:52 +0000
commitb1c6cddb0392187e9f6aa2ded0ccd9006e3e934c (patch)
tree0a92978b11df2f328ebaf43e20e184b80738593c /lib/libutil
parentf1b4e969b25b3148df7bee882c5eb0eaba2a9aa5 (diff)
Correct the man page, and say that the printf(3) format characters need
to be uintmax_t.
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/snprintb.312
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libutil/snprintb.3 b/lib/libutil/snprintb.3
index c7acab3648c..7dcbb08049e 100644
--- a/lib/libutil/snprintb.3
+++ b/lib/libutil/snprintb.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: snprintb.3,v 1.21 2019/04/29 07:55:38 kre Exp $
+.\" $NetBSD: snprintb.3,v 1.22 2019/12/06 19:31:52 christos Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 27, 2019
+.Dd December 6, 2019
.Dt SNPRINTB 3
.Os
.Sh NAME
@@ -190,8 +190,10 @@ or
.Sq \&=
have not matched.
.Ar FMT
-may contain an integer format specification that prints the value that
-did not match.
+may contain a
+.Ft uintmax_t
+format specification that prints the value that
+did not match, since the field can be more than 32 bits wide.
.El
.Pp
Finally, each field is delimited by a NUL
@@ -307,7 +309,7 @@ F\e30\e010\e0\e
:\e064ALIGN=4PB\e0\e
:\e070ALIGN=64PB\e0\e
:\e074ALIGN=256PB\e0\e
-*ALIGN=2^%d\e0\e
+*ALIGN=2^%jd\e0\e
"
snprintb(buf, buflen, MAP_FMT, 0x0d001234)
\(rA "0xd001234<COPY,FIXED,RENAME,HASSEMAPHORE,ANONYMOUS,ALIGN=8KB>"