mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 05:04:26 +00:00
52d3df7fef
At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file (before log.h inclusion) causes _log() to be executed for every log() call, regardless of the build- or run-time logging level. However there is no guarantee that the log record will actually be displayed. If the current log level is lower than LOGL_DEBUG then it will not be. Add a way to signal that the log record should always be displayed and update log_passes_filters() to handle this. With the new behaviour, log_debug() will always log if LOG_DEBUG is enabled. Move log_test_syslog_nodebug() into its own file since it cannot be made to work where it is, with LOG_DEBUG defined. Signed-off-by: Simon Glass <sjg@chromium.org>
20 lines
364 B
Makefile
20 lines
364 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# Copyright (c) 2017 Google, Inc
|
|
|
|
obj-$(CONFIG_LOG_TEST) += log_test.o
|
|
|
|
ifdef CONFIG_UT_LOG
|
|
|
|
obj-y += test-main.o
|
|
|
|
ifdef CONFIG_SANDBOX
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
|
|
obj-$(CONFIG_LOG_SYSLOG) += syslog_test_ndebug.o
|
|
endif
|
|
|
|
ifndef CONFIG_LOG
|
|
obj-$(CONFIG_CONSOLE_RECORD) += nolog_test.o
|
|
endif
|
|
|
|
endif # CONFIG_UT_LOG
|