eal: fix log level of early messages
authorKeith Wiles <keith.wiles@intel.com>
Mon, 8 Jun 2015 21:55:52 +0000 (16:55 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 19:52:40 +0000 (21:52 +0200)
commit6c7216eefd631b23a167f595c99e2c1c0470f7b4
treebc871ecd600902763e9528396c740f1519fd14ff
parent408a082c4a4ef4dd9a5b37e3217c0edb9b7f6b20
eal: fix log level of early messages

The RTE_LOG(DEBUG, ...) messages in rte_eal_cpu_init() are printed
even when the log level on the command line was set to INFO or lower.

The problem is the rte_eal_cpu_init() routine was called before
the command line args are scanned. Setting --log-level=7 now
correctly does not print the messages from the rte_eal_cpu_init() routine.

Signed-off-by: Keith Wiles <keith.wiles@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal.c