]> git.baikalelectronics.ru Git - uboot.git/commit
log: force DEBUG when LOG_DEBUG is activated
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 12 Jul 2022 07:39:49 +0000 (09:39 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 26 Jul 2022 08:30:56 +0000 (02:30 -0600)
commit8379d5a1d22eb8a3bb17d041fbe4742c0c5d5809
treee7633a4ca261ae30254057124c26870db3dc6563
parent4af6f481297853531aa58f41f4156d88f3c75f78
log: force DEBUG when LOG_DEBUG is activated

When CONFIG_LOG is activated, if LOG_DEBUG is defined in a file and
DEBUG is not defined the trace with debug() macro are not displayed,
because the parameter cond : _DEBUG = 0 is checked in debug_cond().

With this patch the define DEBUG, used to force the trace generated by
debug() macro, is linked with the define LOG_DEBUG, used to force the
trace generated by other macros (log_debug, dev_dbg, pr_debug).

We only need to define LOG_DEBUG in a file to activate all the
traces generated by any U-Boot debug macro, as it is described in
/doc/develop/logging.rst

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
doc/develop/logging.rst
include/log.h