public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] coccicheck: Allow the user to give a VERBOSE= argument
@ 2013-01-22 13:34 Bernd Schubert
  2013-01-22 13:34 ` [PATCH 2/2] coccicheck: Allow to show the executed command line Bernd Schubert
  2013-01-22 14:31 ` [PATCH 1/2] coccicheck: Allow the user to give a VERBOSE= argument Nicolas Palix
  0 siblings, 2 replies; 6+ messages in thread
From: Bernd Schubert @ 2013-01-22 13:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: Julia Lawall, Nicolas Palix, cocci

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/||"`
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-01 10:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 13:34 [PATCH 1/2] coccicheck: Allow the user to give a VERBOSE= argument Bernd Schubert
2013-01-22 13:34 ` [PATCH 2/2] coccicheck: Allow to show the executed command line Bernd Schubert
2013-01-22 14:31 ` [PATCH 1/2] coccicheck: Allow the user to give a VERBOSE= argument Nicolas Palix
2013-01-22 15:05   ` Bernd Schubert
2013-01-23  8:29     ` Nicolas Palix
2013-02-01 10:36       ` Bernd Schubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox