Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2014 14:01:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 195005] New: kvprintf(9) and friends usage examples: trailing '\n' in bitfield argument is wrong (will be treated as bit 10)
Message-ID:  <bug-195005-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: danfe@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-195005-8>