]> git.dujemihanovic.xyz Git - u-boot.git/commit
log: Avoid including function names by default
authorSimon Glass <sjg@chromium.org>
Thu, 22 Aug 2024 13:54:56 +0000 (07:54 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 23 Aug 2024 21:58:41 +0000 (15:58 -0600)
commitdfc0acd0cc3cd14f64cb6850465ade98ea84b366
tree91bf8132534a60dd28b1aab0c8bf0f80f8996863
parent99b23d45cb7f028067a77845e46cb09801e1b9e1
log: Avoid including function names by default

Unless function names are requested, the logging system should not
compile these into the code. Adjust the macros to handle this.

This means that turning on function names at runtime won't work unless
CONFIG_LOGF_FUNC is enabled. We could perhaps split this into a
separate option if that is a problem.

Enable CONFIG_LOGF_FUNC logging for sandbox since the tests expect the
function names to be included. Fix up the pinmux test which checks a
logging statement.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
common/log_console.c
common/log_syslog.c
configs/sandbox_defconfig
include/log.h
test/cmd/pinmux.c
test/log/log_test.c