kbuild: Fix missing '\n' for NEW symbols in yes "" | make oldconfig >conf.new
authorBen Hutchings <ben@decadent.org.uk>
Tue, 19 Feb 2013 00:24:26 +0000 (02:24 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 22 Mar 2013 23:25:01 +0000 (00:25 +0100)
commit64463ab6b5921f840a8fe7ac9b48923c704c15b5
tree27c12d69ac8b1768ea431d52dd33b14eb672b531
parent004920cbe03647bf2b88a2e8bd37f83c878d9e8c
kbuild: Fix missing '\n' for NEW symbols in yes "" | make oldconfig >conf.new

According to Documentation/kbuild/kconfig.txt, the commands:

    yes "" | make oldconfig >conf.new
    grep "(NEW)" conf.new

should list the new config symbols with their default values.
However, currently there is no line break after each new symbol.  When
kconfig is interactive the user will type a new-line at this point,
but when non-interactive kconfig must print it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Reference: http://bugs.debian.org/636029
[regid23@nt1.in: Adjusted Ben's work to apply cleanly to this tree]
Reported-and-tested-by: Regid Ichira <regid23@nt1.in>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/conf.c