Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2023 10:09:56 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 722b7589cca7 - main - printf.9: Update the use example of the %D conversion specifier
Message-ID:  <202304141009.33EA9uGu096909@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=722b7589cca704670c3c532bdd0f5d46675df085

commit 722b7589cca704670c3c532bdd0f5d46675df085
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-04-14 10:08:56 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-14 10:08:56 +0000

    printf.9: Update the use example of the %D conversion specifier
    
    The output of hexadecimal bytes are in lowercase. Update the example to
    reflect the reality.
    
    Reviewed by:    gbe (manpages)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D39543
---
 share/man/man9/printf.9 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9
index 4d3a6fb8b2a5..33347fb135ca 100644
--- a/share/man/man9/printf.9
+++ b/share/man/man9/printf.9
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 9, 2020
+.Dd April 14, 2023
 .Dt PRINTF 9
 .Os
 .Sh NAME
@@ -164,14 +164,14 @@ printf_test(void)
 {
 
 	printf("reg=%b\en", 3, "\e10\e2BITTWO\e1BITONE");
-	printf("out: %4D\en", "AAAA", ":");
+	printf("out: %4D\en", "AAZZ", ":");
 }
 .Ed
 .Pp
 will produce the following output:
 .Bd -literal -offset indent
 reg=3<BITTWO,BITONE>
-out: 41:41:41:41
+out: 41:41:5a:5a
 .Ed
 .Pp
 The call



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304141009.33EA9uGu096909>