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

2014-06-27 Thread Thomas Monjalon
> Mark the rte_log, cmdline_printf and rte_snprintf functions as > being printf-style functions. This causes compilation errors > due to mis-matched parameter types, so the parameter types are > fixed where appropriate. > > Changes in V2: > * Additional fixes for ivshmem-target compilation > > Ch

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

2014-06-21 Thread Bruce Richardson
Mark the rte_log, cmdline_printf and rte_snprintf functions as being printf-style functions. This causes compilation errors due to mis-matched parameter types, so the parameter types are fixed where appropriate. Changes in V2: * Additional fixes for ivshmem-target compilation Changes in V3: * add

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

2014-06-21 Thread Richardson, Bruce
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Friday, June 20, 2014 4:58 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3] EAL: fix usage of printf-like functions > > On Sat, 21

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

2014-06-20 Thread Stephen Hemminger
On Sat, 21 Jun 2014 00:34:30 +0100 Bruce Richardson 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