This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12593] New: PRI*8 and PRI*16 formats use too many bits
- From: "christophe.lyon at st dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 18 Mar 2011 13:48:59 +0000
- Subject: [Bug libc/12593] New: PRI*8 and PRI*16 formats use too many bits
- Auto-submitted: auto-generated
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.