From 168e6325b47353b657def86ff0ddde316697988f Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 17 Feb 2010 20:27:57 +0300 Subject: [PATCH] new_bugs.sh: better filtering of smatch errors from other output Signed-off-by: Dan Carpenter --- smatch_scripts/new_bugs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_scripts/new_bugs.sh b/smatch_scripts/new_bugs.sh index 64a763ba..75c38d91 100755 --- a/smatch_scripts/new_bugs.sh +++ b/smatch_scripts/new_bugs.sh @@ -15,14 +15,14 @@ fi # But the line numbers change quite frequently so # really we only want to see if the line numbers # have changed inside the function. -# The 42 in this messae: +# The 42 in this message: # file.c +123 some_func(42) warn: blah blah blah # IFS=" " for err in $(diff -u $old $new | grep ^+ | cut -b 2- | \ - egrep '(warn|error):' | grep " +") ; do + egrep '(warn|error):' | grep " +[1-9]") ; do # we are only interested in the last chunk. # "some_func(42) warn: blah blah blah" -- 2.11.4.GIT