mbox series

[v7,0/4] log level enhancements

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

Message

Thomas Monjalon April 8, 2021, 4:47 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.

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
  

Comments

David Marchand April 9, 2021, 10:55 a.m. UTC | #1
On Thu, Apr 8, 2021 at 6:47 PM Thomas Monjalon <thomas@monjalon.net> wrote:
>
> 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.

Series applied, thanks.