log: move private functions
authorThomas Monjalon <thomas@monjalon.net>
Thu, 8 Apr 2021 16:47:10 +0000 (18:47 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 9 Apr 2021 10:56:09 +0000 (12:56 +0200)
commit867bb637aef1499703a168f1a5ea1a1ce030f429
tree4a0dd93854fbd03c1343d277b6eea096fe342e48
parent3dd7d693ff73dac58999ed7ea6b27d0adc8dc6bc
log: move private functions

Some private log functions had a wrong "rte_" prefix.

All private log functions are moved from eal_private.h
to the new file eal_log.h:
rte_eal_log_init -> eal_log_init
rte_log_save_regexp -> eal_log_save_regexp
rte_log_save_pattern -> eal_log_save_pattern
eal_log_set_default

The static functions in the file eal_common_log.c are renamed:
rte_log_save_level -> log_save_level
rte_log_lookup -> log_lookup
rte_log_init -> log_init
__rte_log_register -> log_register

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/eal_common_options.c
lib/librte_eal/common/eal_log.h [new file with mode: 0644]
lib/librte_eal/common/eal_private.h
lib/librte_eal/linux/eal.c
lib/librte_eal/linux/eal_log.c
lib/librte_eal/windows/eal.c
lib/librte_eal/windows/eal_log.c