Commit 8f8d3178 authored by David S. Miller's avatar David S. Miller

[NET]: More pktgen.c warnings not caught by Randys patch.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4ae9931d
......@@ -603,8 +603,10 @@ static void show_results(struct pktgen_info* info, int nr_frags)
do_div(idle, cpu_speed);
p += sprintf(p, "OK: %llu(c%llu+d%lu) usec, %llu (%dbyte,%dfrags)\n",
total, (unsigned long long)(total - idle), idle,
info->sofar, size, nr_frags);
(unsigned long long) total,
(unsigned long long) (total - idle), idle,
(unsigned long long) info->sofar,
size, nr_frags);
pps = info->sofar * USEC_PER_SEC;
......@@ -620,7 +622,10 @@ static void show_results(struct pktgen_info* info, int nr_frags)
mbps = bps;
do_div(mbps, 1000000);
p += sprintf(p, " %llupps %lluMb/sec (%llubps) errors: %llu",
pps, mbps, bps, info->errors);
(unsigned long long) pps,
(unsigned long long) mbps,
(unsigned long long) bps,
(unsigned long long) info->errors);
}
static void inject(struct pktgen_info* info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment