strange printf(9) format specifier ("Z") in dev/drm code

Stefan Esser se at freebsd.org
Fri Dec 16 12:45:45 UTC 2011


Am 16.12.2011 12:27, schrieb Alexander Best:
> On Tue Dec  6 11, David Schultz wrote:
>> On Sun, Dec 04, 2011, Alexander Best wrote:
>>> ... i couldn't find a reference to an upercase "Z" in the printf(9) man page.
>>> i talked to dinoex on #freebsd-clang (EFNet) and he said that the "Z" might
>>> come from linux'es libc5 and is the equaivalent to glibc's "z".
>>>
>>> can we adjust those lines, so the clang warnings disappear?
>>
>> Yes, 'Z' is an alias for 'z' that is deprecated in glibc and
>> unsupported in FreeBSD, so changing the case should fix it.
> 
> any chance we could get the following patch committed?

Commited to head as r228572. I do not see a need for an MFC as long
as clang does not become the standard compiler in FreeBSD-9.

Regards, STefan


More information about the freebsd-hackers mailing list