26 Mar, 2018
2 commits
-
As in the unit test, the error message for the recursive inclusion
looks like this:Kconfig.inc1:4: recursive inclusion detected. Inclusion path:
current file : 'Kconfig.inc1'
included from: 'Kconfig.inc3:1'
included from: 'Kconfig.inc2:3'
included from: 'Kconfig.inc1:4'The 'Kconfig.inc1:4' is duplicated in the first and last lines.
Also, the single quotes do not help readability.Change the message like follows:
Recursive inclusion detected.
Inclusion path:
current file : Kconfig.inc1
included from: Kconfig.inc3:1
included from: Kconfig.inc2:3
included from: Kconfig.inc1:4Signed-off-by: Masahiro Yamada
-
If recursive inclusion is detected, it should fail with error
messages. Test this.This also tests the line numbers in the error message, fixed by
commit 5ae6fcc4bb82 ("kconfig: fix line number in recursive inclusion
error message").Signed-off-by: Masahiro Yamada
Reviewed-by: Ulf Magnusson