eal: fix warning about debug log at startup
The log "Debug logs available - lower performance" should
now only be displayed when dataplane debug logs are enabled.
The issue occurs only if the default log level (CONFIG_RTE_LOG_LEVEL) is
set to DEBUG in the configuration, which is not the case by default.
Fixes: 5d8f0baf69
("log: do not drop debug logs at compile time")
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
d613f57dd0
commit
ec7df18bb7
@ -176,7 +176,8 @@ eal_log_set_default(FILE *default_log)
|
||||
{
|
||||
default_log_stream = default_log;
|
||||
|
||||
#if RTE_LOG_LEVEL >= RTE_LOG_DEBUG
|
||||
RTE_LOG(NOTICE, EAL, "Debug logs available - lower performance\n");
|
||||
#if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG
|
||||
RTE_LOG(NOTICE, EAL,
|
||||
"Debug dataplane logs available - lower performance\n");
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user