Skip to content

log: Support control over the log output format

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9dm: core: Add a function to look up a uclass by namedrivers/core/uclass.c include/dm/uclass.h test/dm/core.c+31 -00 replies
1/9dm: core: Add a function to look up a uclass by name+0 -00 replies
2/9log: Add functions to convert IDs to/from namescommon/log.c include/log.h+104 -20 replies
2/9log: Add functions to convert IDs to/from names+0 -00 replies
3/9log: Add control over log formattingcommon/log.c include/asm-generic/global_data.h include/log.h+16 -00 replies
3/9log: Add control over log formatting+0 -00 replies
4/9log: Update log_console to honour the log formatcommon/log_console.c test/py/tests/test_log.py+28 -30 replies
4/9log: Update log_console to honour the log format+0 -00 replies
5/9log: Add a command to control the log output formatcmd/log.c+43 -00 replies
5/9log: Add a command to control the log output format+0 -00 replies
6/9log: Add a command to output a log recordcmd/log.c+40 -10 replies
6/9log: Add a command to output a log record+0 -00 replies
7/9log: Add tests for the new log featurestest/py/tests/test_log.py+27 -10 replies
7/9log: Add tests for the new log features+0 -00 replies
8/9log: Add documentation for commands and formattingdoc/README.log+27 -00 replies
8/9log: Add documentation for commands and formatting+0 -00 replies
9/9log: Add a way to log error-return valuescommon/Kconfig configs/sandbox_defconfig doc/README.log +1 more+33 -00 replies
9/9log: Add a way to log error-return values+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/9] log: Support control over the log output format

This adds a few more features to the log system:

- 'log format' command to control the log output format
- 'log rec' command to output a log record manually
- log_ret() function to log error-return values

With these we have more control over how log records are output as well as the ability to log errors more easily.

Simon Glass (9):
dm: core: Add a function to look up a uclass by name
log: Add functions to convert IDs to/from names
log: Add control over log formatting
log: Update log_console to honour the log format
log: Add a command to control the log output format
log: Add a command to output a log record
log: Add tests for the new log features
log: Add documentation for commands and formatting
log: Add a way to log error-return values

 cmd/log.c                         | 82 +++++++++++++++++++++++++++++++++++++++
 common/Kconfig                    | 13 +++++++
 common/log.c                      | 68 ++++++++++++++++++++++++++++++++
 common/log_console.c              | 27 ++++++++++++-
 configs/sandbox_defconfig         |  1 +
 doc/README.log                    | 35 +++++++++++++++++
 drivers/core/uclass.c             | 14 +++++++
 include/asm-generic/global_data.h |  1 +
 include/dm/uclass.h               |  8 ++++
 include/log.h                     | 64 +++++++++++++++++++++++++++++-
 test/dm/core.c                    |  9 +++++
 test/py/tests/test_log.py         | 32 +++++++++++++--
 12 files changed, 348 insertions(+), 6 deletions(-)
Signature · 1 line
2.15.1.620.gb9897f4670-goog