Whamcloud - gitweb
Branch HEAD
authoradilger <adilger>
Wed, 23 Sep 2009 21:51:11 +0000 (21:51 +0000)
committeradilger <adilger>
Wed, 23 Sep 2009 21:51:11 +0000 (21:51 +0000)
"sort -u" is only sorting and uniquifying on the first field, so it
discards all lines with the same stack depth...  Use "uniq" instead.

autoMakefile.am

index e2e94ab..f7765d6 100644 (file)
@@ -28,7 +28,7 @@ checkstack:
        [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
        { for MOD in $$(find . -name "*.ko"); do                             \
                objdump -d $$MOD | perl build/checkstack.pl;                 \
-         done } | grep -v " bug " | sort -nru > ${CSTK}
+         done } | grep -v " bug " | sort -nr | uniq > ${CSTK}
        [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
 
 checkstack-update: