net/bonding: fix buffer length when printing strings
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 3 Apr 2019 14:45:01 +0000 (15:45 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 20:41:11 +0000 (22:41 +0200)
commitf4206d16429cde8af71912be357bf3e1a3f2f315
treec4af4182f71893c4abdc6a371939aace9835debb
parent70d284ab8262e81600d76456c7819af2913aa164
net/bonding: fix buffer length when printing strings

Using the size of the source string is incorrect when printing using
snprintf. Instead pass in the buffer size to be used appropriately.

Fixes: 457ecf2953fc ("bond: add debug info for mode 6")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c