[dpdk-dev] [PATCH v3] EAL: fix usage of printf-like functions

Stephen Hemminger stephen at networkplumber.org
Sat Jun 21 01:58:03 CEST 2014


On Sat, 21 Jun 2014 00:34:30 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:

> +			(int)(strnlen(buf, sizeof(buf)) - sizeof("_config")),

minor nit, paren not needed here
			(int)strnlen(buf, sizeof...)

better yet change rte_snprintf() to take a size_t to make it compatiable with snprintf


More information about the dev mailing list