aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorZhenlei Huang <zlei@FreeBSD.org>2023-04-14 10:08:56 +0000
committerZhenlei Huang <zlei@FreeBSD.org>2023-04-14 10:08:56 +0000
commit722b7589cca704670c3c532bdd0f5d46675df085 (patch)
treedefc31b1c31723050ec2473584c623a7ce292622 /share
parent9088779e3c8b810afb701adb80be154a7b2e0523 (diff)
downloadsrc-722b7589cca704670c3c532bdd0f5d46675df085.tar.gz
src-722b7589cca704670c3c532bdd0f5d46675df085.zip
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
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/printf.96
1 files 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