diff options
author | Erik Ahlén <erik.ahlen@avalonenterprise.com> | 2011-12-15 09:43:37 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-12-16 09:39:23 +0000 |
commit | 164450a01576cfe3b003fdf1b6c80e6f228bfb5d (patch) | |
tree | bca4b7ff29e993d87bd7546e9c1ed3f2cb355d43 /tools | |
parent | 06e731185fdf9b9bffeff737b7609d5dc8e22bd6 (diff) | |
download | riscv-openocd-164450a01576cfe3b003fdf1b6c80e6f228bfb5d.zip riscv-openocd-164450a01576cfe3b003fdf1b6c80e6f228bfb5d.tar.gz riscv-openocd-164450a01576cfe3b003fdf1b6c80e6f228bfb5d.tar.bz2 |
Change checkpatch.pl tab expanding to 4 characters.
The C coding style guide says that tab width is 4 characters but checkpatch.pl expands tabs to 8 characters which produces false negatives.
Change-Id: Ibdabbb55269b7cf6bcd38042cccb8bd235e42ce2
Signed-off-by: Erik Ahlén <erik.ahlen@avalonenterprise.com>
Reviewed-on: http://openocd.zylin.com/275
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index b7134f8..1089c51 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -504,7 +504,7 @@ sub expand_tabs { if ($c eq "\t") { $res .= ' '; $n++; - for (; ($n % 8) != 0; $n++) { + for (; ($n % 4) != 0; $n++) { $res .= ' '; } next; |