Re: Change %Z to %z in printf

From: David Miller
Date: Sat Mar 07 2009 - 18:00:27 EST


From: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date: Sat, 7 Mar 2009 19:54:45 +0100 (CET)

> I found out that %Z is actually a deprecated libc5-ism as printf(3) of
> man-pages 3.17 dated 2008-12-19 tells me.
>
> In ${kernel}/lib/vsprintf.c, I find the following note and wondered
> if there might be any objections to going back to 'z'.

GCC's printf formatting checks only started recognizing %z a few
releases ago. We kept the %Z in there so that with all gcc versions
we won't get warnings.

We've recently increased the minimal GCC version, so going to %z might
be OK now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/