eal: initialize logging before bus
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 28 Aug 2017 18:13:31 +0000 (11:13 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 3 Oct 2017 09:28:27 +0000 (11:28 +0200)
commitf0dab530f41689651192cebd7683cddbfc9991e2
tree033ae3166761601a1e55f8b03dd99a566c8f8099
parent53d266ac7bb147d4a174d3c7d1b594d571cb3961
eal: initialize logging before bus

Any log messages during bus initialization maybe lost because
the bus registration constructor is called before the logging constructor.

Fixes: a97725791eec ("bus: introduce bus abstraction")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/include/rte_bus.h