commit | 9ba72ef6f0af7ad8ee3fae22e3782bb247642e4b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Sep 25 08:56:23 2019 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Tue Oct 08 13:57:44 2019 +0800 |
tree | 2f42f4d42fd97ae47923fe3f613e215dfb8cb7fa | |
parent | 851caf003b2886d4b5f7b6f66df1032a92b0d6d5 [diff] |
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>