mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-03-03 18:28:01 +01:00
scripts: coccicheck: warn on unset debug file
coccicheck prints debug logs to stdout unless a debug file has been set. This makes it hard to read coccinelle's suggested changes, especially for someone new to coccicheck. From this commit, we warn about this behaviour from within the script on an unset debug file. Explicitly setting the debug file to /dev/null suppresses the warning while keeping the default. Signed-off-by: Benjamin Philip <benjamin.philip495@gmail.com> Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
This commit is contained in:
committed by
Julia Lawall
parent
8952cfe431
commit
bb1c9ccf74
@@ -260,6 +260,11 @@ coccinelle () {
|
||||
}
|
||||
|
||||
if [ "$DEBUG_FILE" = "" ]; then
|
||||
echo 'You have not explicitly specified the debug file to use.'
|
||||
echo 'Using default "/dev/null" as debug file.'
|
||||
echo 'Debug logs will be printed to stdout.'
|
||||
echo 'You can specify the debug file with "make coccicheck DEBUG_FILE=<debug_file>"'
|
||||
echo ''
|
||||
DEBUG_FILE="/dev/null"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user