log: Allow #define LOG_DEBUG to enable logging in a file
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:37 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:21:44 +0000 (15:21 +0800)
commitf9811e8575eb42e75c615ba9b44f0481cdb78330
tree8eb5ef4d0bb4529d4bb2d017310881023e8273b7
parent8dee7b96fd6eaea54400aaf317f72aac9b323b58
log: Allow #define LOG_DEBUG to enable logging in a file

At present it is possible to '#define DEBUG' at the top of a file which
causes all debug() statements in that file to become active. There is
currently no equivalent with logging, but this is a useful function.

Add a LOG_DEBUG define along with documentation.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
doc/README.log
include/log.h