This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PATCH: Add x32 support to dynamic linker audit
On Wed, Mar 21, 2012 at 5:32 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Wed, 21 Mar 2012, Carlos O'Donell wrote:
>
>> Please clean this up to avoid using %t and ptrdiff_t.
>>
>> We should be printing variants of %x.
>
> "t" is a modifier on an integer format, such as %x. ?For example, %tx
> prints as hex a value from (the unsigned type corresponding to) ptrdiff_t.
Yes, that's right, what I really wanted to say is that we aren't
printing a "different between two pointers", we are printing a
variable sized object that is the return of the library auditing
interface.
I asked H.J. the same question: Was %tu and ptrdiff_t chosen because
they adjust themselves appropriately?
Cheers,
Carlos.