summaryrefslogtreecommitdiffstats
path: root/scripts/coccicheck
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>2013-01-29 17:03:37 +0100
committerMichal Marek <mmarek@suse.cz>2013-02-22 11:39:13 +0100
commit26e56720916a2a84704d46268375f204f58bebc8 (patch)
tree75f7696f870de3b4d1ccf666c54b86f1ca3c4355 /scripts/coccicheck
parentff3771cb717fd532d97f354cd169fd10da0d0339 (diff)
downloadblackbird-obmc-linux-26e56720916a2a84704d46268375f204f58bebc8.tar.gz
blackbird-obmc-linux-26e56720916a2a84704d46268375f204f58bebc8.zip
coccicheck: Allow the user to give a V= (verbose) argument
Do not run with verbosity on/off depending on the ONLINE variable, which gets set with C=1 or C=2, but allow the user to set the verbosity using kernel default make V= paramemter. Verbosity is off by default now. Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de> CC: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/coccicheck')
-rwxr-xr-xscripts/coccicheck11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index 1a49d1c7ecfe..f8f15a269e1a 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -2,6 +2,15 @@
SPATCH="`which ${SPATCH:=spatch}`"
+# The verbosity may be set by the environmental parameter V=
+# as for example with 'make V=1 coccicheck'
+
+if [ -n "$V" -a "$V" != "0" ]; then
+ VERBOSE=1
+else
+ VERBOSE=0
+fi
+
if [ "$C" = "1" -o "$C" = "2" ]; then
ONLINE=1
@@ -55,7 +64,7 @@ coccinelle () {
#
# $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null
- if [ "$ONLINE" = "0" ] ; then
+ if [ $VERBOSE -ne 0 ] ; then
FILE=`echo $COCCI | sed "s|$srctree/||"`
OpenPOWER on IntegriCloud