service: use log for error messages
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 21 Aug 2019 09:12:52 +0000 (10:12 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 15 Oct 2019 18:37:11 +0000 (20:37 +0200)
commita8f8ae1cf9b68f6398b49019ca07a215a57bba41
treef606a433ecc475c296c1281ce71d135e3f7f53fa
parent75dbb45f28af31f49617d93e0195daa76df1724c
service: use log for error messages

EAL should always use rte_log instead of putting errors to
stderr (which maybe redirected to /dev/null in a daemon).

Also checks for null before rte_free are unnecessary.
Minor code consistency improvements.

Fixes: 21698354c832 ("service: introduce service cores concept")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/common/rte_service.c