git: 722b7589cca7 - main - printf.9: Update the use example of the %D conversion specifier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Apr 2023 10:09:56 UTC
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