Skip to contentSkip to conversation

: Use '%Z' for size_t.

APPLETALK David Woodhouse 2 participants 4 messages Feb 19, 2004 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
Quoted 6 lines · On Thu, 19 Feb 2004 15:27:17 +0000 David Woodhouse <[email protected]> wrote:
Quoted 3 lines · Linux Kernel Mailing List

ChangeSet 1.1561.2.2, 2004/02/18 13:11:42-08:00, [email protected]

[APPLETALK]: Use '%Z' for size_t.

%Zd is an ancient GNUism. Please use %zd in new code instead.

As long as lib/vsprintf.c in the kernel supports it, there is no reason not to use it. They're never going to remove recognition of this thing from gcc printf's parsing.

If it really bothers you, then go sick a kernel janitor onto it, because there are thousands of uses of %Z, I know because I put most of them into the tree :-)

#3 lore raw
Quoted 6 lines · David S. Miller

As long as lib/vsprintf.c in the kernel supports it, there is no reason not to use it. They're never going to remove recognition of this thing from gcc printf's parsing.

If it really bothers you, then go sick a kernel janitor onto it, because there are thousands of uses of %Z, I know because I put most of them into the tree :-)

Never's a long time.... the request was that you refrain from putting _new_ ones in. That's not so hard, now is it?

Signature · 1 line
dwmw2
#4 lore raw
Quoted 2 lines · On Thu, 19 Feb 2004 18:50:15 +0000 David Woodhouse <[email protected]> wrote:

the request was that you refrain from putting
_new_ ones in. That's not so hard, now is it?

Sure, no problem.