From: Sam Leffler <sam@errno.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>, netdev@oss.sgi.com
Subject: Re: [PATCH] pktgen: sprintf arg type warning
Date: Sat, 09 Oct 2004 10:30:09 -0700 [thread overview]
Message-ID: <41682021.3080400@errno.com> (raw)
In-Reply-To: <20041008221934.42a6bc7a.davem@davemloft.net>
David S. Miller wrote:
> On Fri, 8 Oct 2004 20:30:27 -0700
> "Randy.Dunlap" <rddunlap@osdl.org> wrote:
>
>
>>Fix sprintf arg type error (gcc 3.3.3), although it looks more like
>>a gcc problem than a kernel source code problem to me.
>>Doesn't matter on x86-32. Fixes a warning on x86-64.
>>
>>net/core/pktgen.c:607: warning: long long unsigned int format, long unsigned int arg (arg 4)
>
>
> This won't fix the problem on sparc64 where u64 is an "unsigned long"
> So, just cast the thing to the type gcc wants "unsigned long long"
>
Other systems have addressed this problem by extending printf with
portable %formats.
Sam
next prev parent reply other threads:[~2004-10-09 17:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-09 3:30 [PATCH] pktgen: sprintf arg type warning Randy.Dunlap
2004-10-09 5:19 ` David S. Miller
2004-10-09 17:30 ` Sam Leffler [this message]
2004-10-09 17:36 ` Andi Kleen
2004-10-09 17:49 ` Sam Leffler
2004-10-09 22:07 ` Randy.Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41682021.3080400@errno.com \
--to=sam@errno.com \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
--cc=rddunlap@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.