netdev
[Top] [All Lists]

Re: [PATCH] pktgen: sprintf arg type warning

To: Sam Leffler <sam@xxxxxxxxx>
Subject: Re: [PATCH] pktgen: sprintf arg type warning
From: Andi Kleen <ak@xxxxxxx>
Date: Sat, 9 Oct 2004 19:36:44 +0200
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, "Randy.Dunlap" <rddunlap@xxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <41682021.3080400@errno.com>
References: <20041008203027.643a2a97.rddunlap@osdl.org> <20041008221934.42a6bc7a.davem@davemloft.net> <41682021.3080400@errno.com>
Sender: netdev-bounce@xxxxxxxxxxx
> 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.

Standard trick is to cast to long.

-Andi

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