[dpdk-dev] [PATCH v7 0/4] log level enhancements
Thomas Monjalon
thomas at monjalon.net
Thu Apr 8 18:47:09 CEST 2021
This series is a part of a bigger one split after v4:
"improve options help"
The main intent of this series is to provide a nice help
for the --log-level option.
v7:
- free sorted array of log types
v6:
- fix commit log
v5:
- rename more private functions
- sort log types when printing help
Thomas Monjalon (4):
log: move private functions
log: introduce macro for maximum level
log: catch invalid level option number
log: add option argument help
lib/librte_eal/common/eal_common_log.c | 90 ++++++++++++++++------
lib/librte_eal/common/eal_common_options.c | 60 ++++++++++-----
lib/librte_eal/common/eal_log.h | 32 ++++++++
lib/librte_eal/common/eal_private.h | 29 -------
lib/librte_eal/include/rte_log.h | 12 +++
lib/librte_eal/linux/eal.c | 3 +-
lib/librte_eal/linux/eal_log.c | 4 +-
lib/librte_eal/version.map | 1 +
lib/librte_eal/windows/eal.c | 3 +-
lib/librte_eal/windows/eal_log.c | 6 +-
10 files changed, 165 insertions(+), 75 deletions(-)
create mode 100644 lib/librte_eal/common/eal_log.h
--
2.31.1
More information about the dev
mailing list