Re: [dpdk-dev] [PATCH] eal: check vsnprintf failure and return -EINVAL

2021-04-19 Thread Thomas Monjalon
16/03/2021 00:55, Tyler Retzlaff: > Check for failure, while here just increment len once after checking for > failure instead of duplicating len + 1 math in two different argument > lists. > > Signed-off-by: Tyler Retzlaff Applied, thanks

[dpdk-dev] [PATCH] eal: check vsnprintf failure and return -EINVAL

2021-03-15 Thread Tyler Retzlaff
Check for failure, while here just increment len once after checking for failure instead of duplicating len + 1 math in two different argument lists. Signed-off-by: Tyler Retzlaff --- lib/librte_eal/common/eal_common_devargs.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff