[dpdk-dev] scripts: improve quiet checkpatch

Message ID 1449974242-31780-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Thomas Monjalon Dec. 13, 2015, 2:37 a.m. UTC
  The option --no-summary will remove this line in quiet mode:
	total: 1 errors, 0 warnings, 7 lines checked

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 scripts/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon March 24, 2016, 9:20 p.m. UTC | #1
2015-12-13 03:37, Thomas Monjalon:
> The option --no-summary will remove this line in quiet mode:
> 	total: 1 errors, 0 warnings, 7 lines checked
> 
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied
  

Patch

diff --git a/scripts/checkpatches.sh b/scripts/checkpatches.sh
index afc611b..36376e6 100755
--- a/scripts/checkpatches.sh
+++ b/scripts/checkpatches.sh
@@ -58,7 +58,7 @@  quiet=false
 verbose=false
 while getopts hqv ARG ; do
 	case $ARG in
-		q ) quiet=true ;;
+		q ) quiet=true && options="$options --no-summary" ;;
 		v ) verbose=true ;;
 		h ) print_usage ; exit 0 ;;
 		? ) print_usage ; exit 1 ;;