]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/checkpatch.pl
CODING_STYLE, checkpatch: update line length rules
[mirror_qemu.git] / scripts / checkpatch.pl
index fea576d1b449ef1b0edbb19f834a318ecde95eb5..ba6760d4b3402db81ea0e5c54306cd9f4740e491 100755 (executable)
@@ -1336,12 +1336,16 @@ sub process {
 # check we are in a valid source file if not then ignore this hunk
                next if ($realfile !~ /\.(h|c|cpp|s|S|pl|py|sh)$/);
 
-#80 column limit
+#90 column limit
                if ($line =~ /^\+/ &&
                    !($line =~ /^\+\s*"[^"]*"\s*(?:\s*|,|\)\s*;)\s*$/) &&
                    $length > 80)
                {
-                       WARN("line over 80 characters\n" . $herecurr);
+                       if ($length > 90) {
+                               ERROR("line over 90 characters\n" . $herecurr);
+                       } else {
+                               WARN("line over 80 characters\n" . $herecurr);
+                       }
                }
 
 # check for spaces before a quoted newline