Index: tools/ccheck.sh
===================================================================
--- tools/ccheck.sh	(revision f303afc69bfdfc798071487501f775a7c4d8c475)
+++ tools/ccheck.sh	(revision fb08c470e2d36513bc2233dcd370c9400e2d42a1)
@@ -39,4 +39,6 @@
 snorepcnt=0
 fcnt=0
+exitfile="$(mktemp)"
+echo 0 >"$exitfile"
 
 find abi kernel boot uspace -type f -regex '^.*\.[ch]$' | (
@@ -48,5 +50,6 @@
 		if [ -s "$outfile" ] ; then
 			srepcnt=$((srepcnt + 1))
-			cat "$outfile"
+			#cat "$outfile"
+			echo "$fname has issues"
 		else
 			snorepcnt=$((snorepcnt + 1))
@@ -54,4 +57,6 @@
 	else
 		fcnt=$((fcnt + 1))
+		cat "$outfile"
+		echo 1 > "$exitfile"
 	fi
 
@@ -63,2 +68,7 @@
 echo "Not checked files: $fcnt"
 )
+
+exitcode=$(cat "$exitfile")
+rm -rf "$exitfile"
+
+exit $exitcode
