[PATCH v6 0/6] Logging related patches
Stephen Hemminger
stephen at networkplumber.org
Thu Jun 29 17:58:37 CEST 2023
Patchset that includes:
- unified code for more of log argument handling
- fix for duplicate option errors
- timestamp option for logging
v6
- fix build on freebsd and windows
- add test for log timestamp
Stephen Hemminger (6):
eal: unify logging code
eal: turn off getopt_long error message during eal_log_level
eal: fix help message for syslog option
eal: skip stdio on console logging
eal: allow user to set default log stream before init
eal: add option to put timestamp on console output
app/dumpcap/main.c | 3 +
app/pdump/main.c | 3 +
app/proc-info/main.c | 3 +
app/test/test_eal_flags.c | 9 ++
.../freebsd_gsg/freebsd_eal_parameters.rst | 32 +++++
doc/guides/linux_gsg/linux_eal_parameters.rst | 5 +
lib/eal/common/eal_common_log.c | 55 +++++++++
lib/eal/common/eal_common_options.c | 8 +-
lib/eal/common/eal_internal_cfg.h | 3 +
lib/eal/common/eal_log.h | 6 +
lib/eal/common/eal_options.h | 2 +
lib/eal/freebsd/eal.c | 55 ++-------
lib/eal/linux/eal.c | 46 +-------
lib/eal/linux/eal_log.c | 61 ----------
lib/eal/linux/meson.build | 1 -
lib/eal/unix/eal_log.c | 111 ++++++++++++++++++
lib/eal/unix/meson.build | 1 +
lib/eal/windows/eal.c | 36 +-----
18 files changed, 259 insertions(+), 181 deletions(-)
delete mode 100644 lib/eal/linux/eal_log.c
create mode 100644 lib/eal/unix/eal_log.c
--
2.39.2
More information about the dev
mailing list