netmap pkt-gen tool: Fix memset(3) argument order
Submitted by: Michael McConville <mmcco AT mykolab.com> Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
f134051fcf
commit
b797f66c80
@ -612,7 +612,7 @@ dump_payload(const char *_p, int len, struct netmap_ring *ring, int cur)
|
||||
ring->slot[cur].flags, len);
|
||||
/* hexdump routine */
|
||||
for (i = 0; i < len; ) {
|
||||
memset(buf, sizeof(buf), ' ');
|
||||
memset(buf, ' ', sizeof(buf));
|
||||
sprintf(buf, "%5d: ", i);
|
||||
i0 = i;
|
||||
for (j=0; j < 16 && i < len; i++, j++)
|
||||
|
Loading…
Reference in New Issue
Block a user