[PATCH v7 0/5] Logging timetamp and related patches
Stephen Hemminger
stephen at networkplumber.org
Thu Jul 6 00:48:00 CEST 2023
Patchset that includes:
- unified code for more of log argument handling
- fix for duplicate option errors
- timestamp option for logging
v7
- consolidate patches
- fix windows to have same getopt args as Linux and FreeBSD
Stephen Hemminger (5):
windows: make getopt functions have const properties
eal: fix help message for syslog option
eal: unify logging code
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 +-----
lib/eal/windows/getopt.c | 23 ++--
lib/eal/windows/include/getopt.h | 8 +-
20 files changed, 275 insertions(+), 196 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