Re: [dpdk-dev] [PATCH v2 1/4] eal: use sizeof to avoid a double use of a define

2018-04-10 Thread Burakov, Anatoly
On 03-Apr-18 2:04 PM, Olivier Matz wrote: Only a cosmetic change: the *_LEN defines are already used when defining the buffer. Using sizeof() ensures that the length stays consistent, even if the definition is modified. Signed-off-by: Olivier Matz --- Reviewed-by: Anatoly Burakov -- Thanks,

[dpdk-dev] [PATCH v2 1/4] eal: use sizeof to avoid a double use of a define

2018-04-03 Thread Olivier Matz
Only a cosmetic change: the *_LEN defines are already used when defining the buffer. Using sizeof() ensures that the length stays consistent, even if the definition is modified. Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/eal/eal.c | 2 +- lib/librte_eal/bsdapp/eal/eal_thread.