pdump: fix log messages
authorReshma Pattan <reshma.pattan@intel.com>
Thu, 10 Nov 2016 16:29:40 +0000 (16:29 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sat, 12 Nov 2016 21:27:09 +0000 (22:27 +0100)
commitc9c7758dde16d9801349178d1c514a157b0738e2
treec9f6a3cfb6ac487ef64a8ccb5a67f2209053413d
parentf5e9ed5c4e35a4cc2db7c10cf855e701472af864
pdump: fix log messages

The ethdev Rx/Tx remove callback apis doesn't set rte_errno during
failures, instead they just return negative error number, so using
that number in logs instead of rte_errno upon Rx and Tx callback
removal failures.

Fixes: 278f9454 ("pdump: add new library for packet capture")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_pdump/rte_pdump.c