aboutsummaryrefslogtreecommitdiff
path: root/util/lint
diff options
context:
space:
mode:
Diffstat (limited to 'util/lint')
-rwxr-xr-xutil/lint/checkpatch.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index 1bf9e6556d..0e2988ea9b 100755
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -2858,9 +2858,9 @@ sub process {
$line =~ /^Subject: /) {
$line = $line.$rawlines[$linenr];
$line =~ s/^Subject: \[PATCH\] //;
- if (length($line) > 65) {
- WARN("COMMIT_LOG_LONG_LINE",
- "Possible long commit subject (prefer a maximum 65 characters)\n" . $herecurr);
+ if (length($line) - length("Subject: [PATCH] ") > 65) {
+ WARN("COMMIT_LOG_LONG_LINE",
+ "Possible long commit subject (prefer a maximum 65 characters)\n" . $herecurr);
}
}