git: d26e62ad16dc - stable/12 - printf.9: Update the use example of the %D conversion specifier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Apr 2023 10:17:53 UTC
The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d26e62ad16dc573cccb12c79ac9d34ad773ac0d2 commit d26e62ad16dc573cccb12c79ac9d34ad773ac0d2 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2023-04-14 10:08:56 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2023-04-21 10:16:10 +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 (cherry picked from commit 722b7589cca704670c3c532bdd0f5d46675df085) (cherry picked from commit ff7151058e51902989b05f39a0569224dae54245) --- 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 0b4bd826aa5c..c5cb6f2ad89d 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 18, 2015 +.Dd April 14, 2023 .Dt PRINTF 9 .Os .Sh NAME @@ -160,14 +160,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