Module Name:    src
Committed By:   rillig
Date:           Sun Feb 18 16:55:02 UTC 2024

Modified Files:
        src/lib/libutil: snprintb.3
        src/sys/sys: mman.h

Log Message:
mman.h: fix snprintb description for alignment 2^60


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libutil/snprintb.3
cvs rdiff -u -r1.64 -r1.65 src/sys/sys/mman.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libutil/snprintb.3
diff -u src/lib/libutil/snprintb.3:1.31 src/lib/libutil/snprintb.3:1.32
--- src/lib/libutil/snprintb.3:1.31	Thu Feb 15 22:48:58 2024
+++ src/lib/libutil/snprintb.3	Sun Feb 18 16:55:02 2024
@@ -1,4 +1,4 @@
-.\"     $NetBSD: snprintb.3,v 1.31 2024/02/15 22:48:58 rillig Exp $
+.\"     $NetBSD: snprintb.3,v 1.32 2024/02/18 16:55:02 rillig 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 February 15, 2024
+.Dd February 18, 2024
 .Dt SNPRINTB 3
 .Os
 .Sh NAME
@@ -323,7 +323,7 @@ snprintb_m(buf, bufsize,
 .Pp
 A more complex example from
 .In sys/mman.h
-that uses the both bit position
+that uses both the bit position
 .Sq Cm b
 formatting as well as the
 .Sq Cm F
@@ -370,7 +370,7 @@ multibit field formatting with a default
                 ":\e060" "ALIGN=256TB\e0"         \e
                 ":\e064" "ALIGN=4PB\e0"           \e
                 ":\e070" "ALIGN=64PB\e0"          \e
-                ":\e074" "ALIGN=256PB\e0"         \e
+                ":\e074" "ALIGN=1EB\e0"           \e
                 "*"     "ALIGN=2^%ju\e0"
 
 snprintb(buf, bufsize, MAP_FMT, 0x0d001234)

Index: src/sys/sys/mman.h
diff -u src/sys/sys/mman.h:1.64 src/sys/sys/mman.h:1.65
--- src/sys/sys/mman.h:1.64	Mon Jul 10 18:22:31 2023
+++ src/sys/sys/mman.h	Sun Feb 18 16:55:02 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: mman.h,v 1.64 2023/07/10 18:22:31 christos Exp $	*/
+/*	$NetBSD: mman.h,v 1.65 2024/02/18 16:55:02 rillig Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -157,7 +157,7 @@ typedef	__off_t		off_t;		/* file offset 
 		":\060" "ALIGN=256TB\0"		\
 		":\064" "ALIGN=4PB\0"		\
 		":\070" "ALIGN=64PB\0"		\
-		":\074" "ALIGN=256PB\0"		\
+		":\074" "ALIGN=1EB\0"		\
 		"*"	"ALIGN=2^%ju\0"
 #endif
 

Reply via email to