[U-Boot] [PATCH 0/9] log: Support control over the log output format
Simon Glass
sjg at chromium.org
Thu Dec 28 20:14:14 UTC 2017
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(-)
--
2.15.1.620.gb9897f4670-goog
More information about the U-Boot
mailing list