fix error output to the log file

Error messages have to go to the log file

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
diff --git a/cpufreq/Makefile b/cpufreq/Makefile
index 5dfc00d..f52a1f4 100644
--- a/cpufreq/Makefile
+++ b/cpufreq/Makefile
@@ -25,10 +25,10 @@
 TST=$(wildcard *.sh)
 LOG=$(TST:.sh=.log)
 
-check: $(LOG)
+check: uncheck $(LOG)
 
 %.log: %.sh
-	@./$<
+	@./$< 2> $@
 
 clean:
 	rm -f $(LOG)