menuconfig: print more info for symbol without prompts
authorWengmeiling <wengmeiling.weng@huawei.com>
Tue, 30 Apr 2013 22:28:46 +0000 (15:28 -0700)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:57:17 +0000 (17:57 +0200)
commit38accb8265d899250a003e10f0916b8d997e2203
tree1690625f1225aea3cba1595e7153b8d7bd8a5aeb
parentb3805f620303ab02d11d1a6df6dd589e8fcd5d39
menuconfig: print more info for symbol without prompts

When we search a config symbol, if it has no prompt the position of this
symbol in the Kconfig file and it's dependencies are not printed.  This
can be inconvenient, especially when it's set to n and we want to find out
why.

the following is an example:

before:

Symbol: GENERIC_SMP_IDLE_THREAD [=y]
Type  : boolean
  Selected by: X86 [=y]

after:

Symbol: GENERIC_SMP_IDLE_THREAD [=y]
Type  : boolean
  Defined at arch/Kconfig:213
  Selected by: X86 [=y]

Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/menu.c