[Bug 195005] New: kvprintf(9) and friends usage examples: trailing '\n' in bitfield argument is wrong (will be treated as bit 10)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 14 14:01:49 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195005
Bug ID: 195005
Summary: kvprintf(9) and friends usage examples: trailing '\n'
in bitfield argument is wrong (will be treated as bit
10)
Product: Base System
Version: 11.0-CURRENT
Hardware: Any
OS: Any
Status: Needs Triage
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: freebsd-bugs at FreeBSD.org
Reporter: danfe at FreeBSD.org
Created attachment 149399
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149399&action=edit
%b format usage fix
Consider attached patch, which fixes usage example in kvprintf(9) and friends:
trailing '\n' in bitfield argument looks 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
examples).
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list