test: pr_cont_test.o depends on CONFIG_LOG=y
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 27 Jan 2021 11:09:46 +0000 (12:09 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 29 Jan 2021 15:36:49 +0000 (10:36 -0500)
commit34d7f72a1db0226d083a131b565ed294eeae9c48
tree1b5e48df52e3041b651ce8aae22db7ceb0f15177
parent8921ac9747829d511954a946e3e8608818a4847a
test: pr_cont_test.o depends on CONFIG_LOG=y

Compiling wandboard_defconfig with CONFIG_UT_LOG=y leads to a build error:

test/log/pr_cont_test.c: In function ‘log_test_pr_cont’:
test/log/pr_cont_test.c:28:14: error:
‘gd_t’ {aka ‘volatile struct global_data’} has no member named ‘log_fmt’
  log_fmt = gd->log_fmt;

We do not want to let CONFIG_UT_LOG depend on CONFIG_LOG=y because we have
tests for logging functions called with CONFIG_LOG=n.

Fix the build dependency.

Reported-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
test/log/Makefile