summaryrefslogtreecommitdiffstats
path: root/include/log.h
Commit message (Collapse)AuthorAgeFilesLines
...
* log: Add functions to convert IDs to/from namesSimon Glass2018-02-031-2/+37
| | | | | | | | | | | | | | Category and level both use an enum for their ID values. Add functions to convert these IDs to strings and vice versa. This will allow the log to output the strings instead of the (inscrutable) values. At the same time, add a new 'driver-model' category, to cover core driver-model functions and fix an incorrect value for LOGL_MAX. Tests will be added with the new 'log' subcommands. Signed-off-by: Simon Glass <sjg@chromium.org> (Updated to correct clang warnings)
* log: Add a test commandSimon Glass2017-12-071-0/+3
| | | | | | Add a command which exercises the logging system. Signed-off-by: Simon Glass <sjg@chromium.org>
* log: Add an implementation of loggingSimon Glass2017-12-071-0/+242
| | | | | | | Add the logging header file and implementation with some configuration options to control it. Signed-off-by: Simon Glass <sjg@chromium.org>
* Move debug and logging support to a separate headerSimon Glass2017-12-071-0/+59
Before adding new features, move these definitions to a separate header to avoid further cluttering common.h. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>