diff options
author | Simon Glass | 2018-10-01 11:55:06 -0600 |
---|---|---|
committer | Simon Glass | 2018-10-09 04:40:26 -0600 |
commit | cdd140af5c6b623d31ac87a8054cee55fb70d3f0 (patch) | |
tree | 2611fa049af667c73e353be43fb8a5aa11c4c7f1 /include/cros_ec.h | |
parent | fbcf37e48ebb9829c85651378191e33f6ece710e (diff) |
log: Add helpers for common log levels
At present to output a log message you need something like:
log(UCLASS_SPI, LOCL_INFO, "message1");
log(UCLASS_SPI, LOCL_INFO, "message2");
but many files use the same category throughout. Also it is helpful to
shorten the length of log names, providing helpers for common logging
levels. Add some macros so that it is possible to do:
(top of file, before #includes)
#define LOG_CATEGORY UCLASS_SPI
(later in the file)
log_info("message1");
log_debug("message2");
log_err("message3");
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cros_ec.h')
0 files changed, 0 insertions, 0 deletions