diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-01-23 07:30:57 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2015-01-23 07:30:57 +0000 |
commit | c5f282daad8b9d7350ede24c4dd63a7291f7e37d (patch) | |
tree | 7261049881704c1c328ee01cb2b8bbdac0b51790 /share/man/man9/printf.9 | |
parent | 5087ad02126a15380d587ba1ce0c38a520da01d9 (diff) |
Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n'
in bitfield argument is wrong, as it will be treated as bit 10, causing any
code printing >=10 bits with bit 10 on as having a trailing comma.
Newline (intended one) should be part of the format string (already present
in the examples).
Also fix grammar and kill EOL whitespace in comment while here.
PR: 195005
Approved by: bdrewery
Notes
Notes:
svn path=/head/; revision=277560
Diffstat (limited to 'share/man/man9/printf.9')
-rw-r--r-- | share/man/man9/printf.9 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/man/man9/printf.9 b/share/man/man9/printf.9 index 571e7e638c36..84ac822da023 100644 --- a/share/man/man9/printf.9 +++ b/share/man/man9/printf.9 @@ -151,7 +151,7 @@ void printf_test(void) { - printf("reg=%b\en", 3, "\e10\e2BITTWO\e1BITONE\en"); + printf("reg=%b\en", 3, "\e10\e2BITTWO\e1BITONE"); printf("out: %4D\en", "AAAA", ":"); } .Ed |