netdev
[Top] [All Lists]

Re: [PATCH] pktgen: sprintf arg type warning

To: Andi Kleen <ak@xxxxxxx>
Subject: Re: [PATCH] pktgen: sprintf arg type warning
From: Sam Leffler <sam@xxxxxxxxx>
Date: Sat, 09 Oct 2004 10:49:55 -0700
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, "Randy.Dunlap" <rddunlap@xxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20041009173644.GC30713@wotan.suse.de>
Organization: Errrno Consulting
References: <20041008203027.643a2a97.rddunlap@osdl.org> <20041008221934.42a6bc7a.davem@davemloft.net> <41682021.3080400@errno.com> <20041009173644.GC30713@wotan.suse.de>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)
Andi Kleen wrote:
Other systems have addressed this problem by extending printf with portable %formats.


Problem is that gcc -Wformat doesn't know the new format codes,
and in Linux we still have to support old gcc versions.

Yes, gcc has been modified to understand the new %formats. That's the advantage to distributing a full system and not just a kernel :)



Standard trick is to cast to long.

-Andi




<Prev in Thread] Current Thread [Next in Thread>