mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
e1cbd916c8
At present if logging not enabled, log_info() becomes a nop. But we want log output at the 'info' level to be akin to printf(). Update the macro to pass the output straight to printf() in this case. This mimics the behaviour for the log_...() macros like log_debug() and log_info(), so we can drop the special case for these. Add new tests to cover this case. Signed-off-by: Simon Glass <sjg@chromium.org>
26 lines
542 B
Makefile
26 lines
542 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2017 Google, Inc
|
|
|
|
obj-$(CONFIG_LOG_TEST) += log_test.o
|
|
obj-$(CONFIG_CMD_LOG) += log_filter.o
|
|
|
|
ifdef CONFIG_UT_LOG
|
|
|
|
obj-y += log_ut.o
|
|
|
|
ifdef CONFIG_SANDBOX
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test_ndebug.o
|
|
endif
|
|
|
|
ifdef CONFIG_LOG
|
|
obj-y += pr_cont_test.o
|
|
obj-$(CONFIG_CONSOLE_RECORD) += cont_test.o
|
|
obj-y += pr_cont_test.o
|
|
else
|
|
obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
|
|
obj-$(CONFIG_CONSOLE_RECORD) += nolog_ndebug.o
|
|
endif
|
|
|
|
endif # CONFIG_UT_LOG
|