From: "Randy.Dunlap" <rddunlap@osdl.org>
To: netdev@oss.sgi.com
Cc: davem@davemloft.net
Subject: [PATCH] pktgen: sprintf arg type warning
Date: Fri, 8 Oct 2004 20:30:27 -0700 [thread overview]
Message-ID: <20041008203027.643a2a97.rddunlap@osdl.org> (raw)
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)
Signed-off-by: Randy Dunlap <rddunlap@osdl.org>
diffstat:=
net/core/pktgen.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./net/core/pktgen.c~pktgen_type ./net/core/pktgen.c
--- ./net/core/pktgen.c~pktgen_type 2004-10-06 15:04:06.260548504 -0700
+++ ./net/core/pktgen.c 2004-10-08 20:16:57.191340296 -0700
@@ -603,7 +603,7 @@ static void show_results(struct pktgen_i
do_div(idle, cpu_speed);
p += sprintf(p, "OK: %llu(c%llu+d%lu) usec, %llu (%dbyte,%dfrags)\n",
- total, total - idle, idle,
+ total, total - (__u64)idle, idle,
info->sofar, size, nr_frags);
pps = info->sofar * USEC_PER_SEC;
--
~Randy
next reply other threads:[~2004-10-09 3:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-09 3:30 Randy.Dunlap [this message]
2004-10-09 5:19 ` [PATCH] pktgen: sprintf arg type warning David S. Miller
2004-10-09 17:30 ` Sam Leffler
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=20041008203027.643a2a97.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).