diff options
author | danfe <danfe@FreeBSD.org> | 2015-01-23 07:30:57 +0000 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2015-01-23 07:30:57 +0000 |
commit | d20a416d73ddf444f93a59ee260047f046a1884a (patch) | |
tree | 7261049881704c1c328ee01cb2b8bbdac0b51790 /share | |
parent | 920fd43d82ba6bcbf7d076a3736808df4e8d6b39 (diff) | |
download | FreeBSD-src-d20a416d73ddf444f93a59ee260047f046a1884a.zip FreeBSD-src-d20a416d73ddf444f93a59ee260047f046a1884a.tar.gz |
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
Diffstat (limited to 'share')
-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 571e7e6..84ac822 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 |