]> git.baikalelectronics.ru Git - uboot.git/commit
log: Add log_nop() to avoid unused-variable warnings
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:23 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:44 +0000 (13:57 +0800)
commit83beb3201ea3561670d1869766b6e5f5300a33cd
tree2f42f4d42fd97ae47923fe3f613e215dfb8cb7fa
parent43330fab8b6f5011a5ff404dd75cd380fc6f53f8
log: Add log_nop() to avoid unused-variable warnings

If a log statement includes a variable and logging is disabled, this can
generate warnings about unused variables. Add a bit more complexity to the
macros to avoid this for the common case.

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