mem: avoid memzone/mempool/ring name truncation
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 18 May 2016 11:04:53 +0000 (13:04 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 May 2016 12:40:14 +0000 (14:40 +0200)
commit85cf00791ccad392f049044d193d1be0c37f0961
treedf65c41d38958188fff419164d64f8bd26caca57
parentb19a0c75a0d4ce1ddfe9c5f2c7d65e8a1f209663
mem: avoid memzone/mempool/ring name truncation

Check the return value of snprintf to ensure that the name of
the object is not truncated.

By the way, update the test to avoid to trigger an error in
that case.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_mempool.c
lib/librte_eal/common/eal_common_memzone.c
lib/librte_mempool/rte_mempool.c
lib/librte_ring/rte_ring.c