]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Coccinelle: Restore coccicheck verbosity in ONLINE mode (C=1 or C=2)
authorNicolas Palix <nicolas.palix@imag.fr>
Sat, 2 Mar 2013 21:36:25 +0000 (22:36 +0100)
committerMichal Marek <mmarek@suse.cz>
Mon, 8 Apr 2013 13:42:02 +0000 (15:42 +0200)
A recent patch have introduce the VERBOSE variable and comments
now depend on it. However, the message printed for each cocci file
such not be printed when the ONLINE mode is active, whatever is
the value of VERBOSE.

Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccicheck

index 85d31899ad9869620984a388a09b1eac78bcb084..7f0d6a6c50007ddc6cd13f6bc6c8157fa97e996f 100755 (executable)
@@ -72,7 +72,7 @@ coccinelle () {
 #
 #    $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null
 
-    if [ $VERBOSE -ne 0 ] ; then
+    if [ $VERBOSE -ne 0 -a $ONLINE -eq 0 ] ; then
 
        FILE=`echo $COCCI | sed "s|$srctree/||"`