mbox series

[v6,0/4] log level enhancements

Message ID 20210406131137.1732110-1-thomas@monjalon.net (mailing list archive)
Headers
Series log level enhancements |

Message

Thomas Monjalon April 6, 2021, 1:11 p.m. UTC
  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.

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     | 87 ++++++++++++++++------
 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, 162 insertions(+), 75 deletions(-)
 create mode 100644 lib/librte_eal/common/eal_log.h