From: Erik Ahlén Date: Thu, 15 Dec 2011 08:43:37 +0000 (+0100) Subject: Change checkpatch.pl tab expanding to 4 characters. X-Git-Tag: v0.6.0-rc1~371 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=164450a01576cfe3b003fdf1b6c80e6f228bfb5d;hp=06e731185fdf9b9bffeff737b7609d5dc8e22bd6;p=openocd 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 Reviewed-on: http://openocd.zylin.com/275 Tested-by: jenkins Reviewed-by: Øyvind Harboe Reviewed-by: Spencer Oliver --- diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index b7134f8a..1089c511 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;