Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil Correct the man page, and say that the printf(3)...



details:   https://anonhg.NetBSD.org/src/rev/072004b3eb54
branches:  trunk
changeset: 847000:072004b3eb54
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 06 19:31:52 2019 +0000

description:
Correct the man page, and say that the printf(3) format characters need
to be uintmax_t.

diffstat:

 lib/libutil/snprintb.3 |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r f2d4273150e9 -r 072004b3eb54 lib/libutil/snprintb.3
--- a/lib/libutil/snprintb.3    Fri Dec 06 19:28:11 2019 +0000
+++ b/lib/libutil/snprintb.3    Fri Dec 06 19:31:52 2019 +0000
@@ -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 @@
 .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 @@
 :\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>"



Home | Main Index | Thread Index | Old Index