lkml.org 
[lkml]   [2013]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 1/2] coccicheck: Allow the user to give a VERBOSE= argument
From
Date
Simply running "make coccicheck" returns very verbose output and warnings
might not be noticed. Allow the user to set the verbosity level.


Signed-off-by: Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>
CC: Julia Lawall <Julia.Lawall@lip6.fr>
CC: Nicolas Palix <nicolas.palix@imag.fr>
CC: cocci@systeme.lip6.fr
---
scripts/coccicheck | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index 1a49d1c..eab0b00 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -2,6 +2,12 @@

SPATCH="`which ${SPATCH:=spatch}`"

+if [ -z "$VERBOSE" ] ; then
+ RUN_VERBOSE=0
+else
+ RUN_VERBOSE=$VERBOSE
+fi
+
if [ "$C" = "1" -o "$C" = "2" ]; then
ONLINE=1

@@ -55,7 +61,7 @@ coccinelle () {
#
# $SPATCH -D $MODE $FLAGS -parse_cocci $COCCI $OPT > /dev/null

- if [ "$ONLINE" = "0" ] ; then
+ if [ "$RUN_VERBOSE" != "0" ] ; then

FILE=`echo $COCCI | sed "s|$srctree/||"`



\
 
 \ /
  Last update: 2013-01-22 15:21    [W:0.091 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site