[PATCH] checkpatch: print how much the 80 char limit has been exceeded

From: Wolfram Sang
Date: Wed Mar 21 2012 - 15:03:17 EST


Signed-off-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>
---
scripts/checkpatch.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index a3b9782..1874197 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1734,7 +1734,7 @@ sub process {
$length > 80)
{
WARN("LONG_LINE",
- "line over 80 characters\n" . $herecurr);
+ "line over 80 characters, namely $length\n" . $herecurr);
}

# check for spaces before a quoted newline
--
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/