coccicheck: add support for DEBUG_FILE
authorLuis R. Rodriguez <mcgrof@kernel.org>
Wed, 29 Jun 2016 22:14:54 +0000 (15:14 -0700)
committerMichal Marek <mmarek@suse.com>
Fri, 22 Jul 2016 10:13:39 +0000 (12:13 +0200)
commitbe1fa90066644c5a7fdf4a08767c4a359f95096f
treea87c51ce5eff2cdf0567e9352853d0a6f3f33132
parentc930a1b23bb7a22439cf505db130a8db60e22688
coccicheck: add support for DEBUG_FILE

Enable to capture stderr via a DEBUG_FILE variable passed to
coccicheck. You can now do:

$ rm -f cocci.err
$ export COCCI=scripts/coccinelle/free/kfree.cocci
$ make coccicheck MODE=report DEBUG_FILE=cocci.err
...
$ cat cocci.err

This will be come more useful once we add support to
use more things which would go into stderr, such as
profiling. That will be done separately in another
commit.

Expand Documentation/coccinelle.txt with details.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Acked-by: Nicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
Documentation/coccinelle.txt
scripts/coccicheck