This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12593] New: PRI*8 and PRI*16 formats use too many bits


http://sourceware.org/bugzilla/show_bug.cgi?id=12593

           Summary: PRI*8 and PRI*16 formats use too many bits
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: christophe.lyon@st.com


Created attachment 5318
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5318
patch for inttypes.h

I have noticed that inttypes.h formats such as PRIx8 are actually defined as
"x", while it should be "hhx". In the current form, too many bits are printed.

In attachment, I propose a patch which changes all the variants. (this patch is
created against the inttypes.h installed on my host machine, as I am not
familiar with glibc's sources)

Note that I am unsure why PRI*FAST16 and PRI*FAST32 currently use
__PRIPTR_PREFIX, and I have changed the PRI*FAST16 variants to use "h" instead.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]