Re: [PATCH 1/3] kconfig: remove duplicated file name and lineno of recursive inclusion
From: Masahiro Yamada
Date: Mon Mar 26 2018 - 11:25:36 EST
2018-03-23 2:00 GMT+09:00 Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>:
> 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:4
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
> ---
Applied to linux-kbuild/kconfig.
--
Best Regards
Masahiro Yamada