FreeBSD Bugzilla – Attachment 149399 Details for
Bug 195005
kvprintf(9) and friends usage examples: trailing '\n' in bitfield argument is wrong (will be treated as bit 10)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
%b format usage fix
b-format.diff (text/plain), 1.89 KB, created by
Alexey Dokuchaev
on 2014-11-14 14:01:49 UTC
(
hide
)
Description:
%b format usage fix
Filename:
MIME Type:
Creator:
Alexey Dokuchaev
Created:
2014-11-14 14:01:49 UTC
Size:
1.89 KB
patch
obsolete
>Index: share/man/man9/printf.9 >=================================================================== >--- share/man/man9/printf.9 (revision 271087) >+++ share/man/man9/printf.9 (working copy) >@@ -151,7 +151,7 @@ > 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 >Index: lib/libstand/libstand.3 >=================================================================== >--- lib/libstand/libstand.3 (revision 271087) >+++ lib/libstand/libstand.3 (working copy) >@@ -288,7 +288,7 @@ > printf( > .Qq reg=%b\en , > 3, >-.Qq \e10\e2BITTWO\e1BITONE\en >+.Qq \e10\e2BITTWO\e1BITONE > ); > .Ed > .Pp >Index: lib/libstand/printf.c >=================================================================== >--- lib/libstand/printf.c (revision 271087) >+++ lib/libstand/printf.c (working copy) >@@ -187,7 +187,7 @@ > * the next characters (up to a control character, i.e. a character <= 32), > * give the name of the register. Thus: > * >- * kvprintf("reg=%b\n", 3, "\10\2BITTWO\1BITONE\n"); >+ * kvprintf("reg=%b\n", 3, "\10\2BITTWO\1BITONE"); > * > * would produce output: > * >@@ -500,7 +500,7 @@ > while (percent < fmt) > PCHAR(*percent++); > /* >- * Since we ignore an formatting argument it is no >+ * Since we ignore a formatting argument it is no > * longer safe to obey the remaining formatting > * arguments as the arguments will no longer match > * the format specs. >Index: sys/kern/subr_prf.c >=================================================================== >--- sys/kern/subr_prf.c (revision 271087) >+++ sys/kern/subr_prf.c (working copy) >@@ -598,7 +598,7 @@ > * the next characters (up to a control character, i.e. a character <= 32), > * give the name of the register. Thus: > * >- * kvprintf("reg=%b\n", 3, "\10\2BITTWO\1BITONE\n"); >+ * kvprintf("reg=%b\n", 3, "\10\2BITTWO\1BITONE"); > * > * would produce output: > *
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195005
: 149399