Date: Wed, 13 Dec 2017 19:36:29 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326832 - head/tools/tools/netmap Message-ID: <201712131936.vBDJaT3w032887@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Wed Dec 13 19:36:29 2017 New Revision: 326832 URL: https://svnweb.freebsd.org/changeset/base/326832 Log: netmap pkt-gen tool: Fix memset(3) argument order Submitted by: Michael McConville <mmcco AT mykolab.com> Sponsored by: Dell EMC Isilon Modified: head/tools/tools/netmap/pkt-gen.c Modified: head/tools/tools/netmap/pkt-gen.c ============================================================================== --- head/tools/tools/netmap/pkt-gen.c Wed Dec 13 19:03:48 2017 (r326831) +++ head/tools/tools/netmap/pkt-gen.c Wed Dec 13 19:36:29 2017 (r326832) @@ -612,7 +612,7 @@ dump_payload(const char *_p, int len, struct netmap_ri 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++)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712131936.vBDJaT3w032887>