]> git.proxmox.com Git - mirror_qemu.git/commitdiff
CHECKPATCH: Add --debug adv_checking
authorDon Slutz <Don@CloudSwitch.com>
Sun, 2 Sep 2012 23:22:36 +0000 (19:22 -0400)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 5 Sep 2012 19:17:49 +0000 (19:17 +0000)
Add debug options to find this issue.  They were not listed
in the help because the are not simple to understand the output of.

Signed-off-by: Don Slutz <Don@CloudSwitch.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
scripts/checkpatch.pl

index 0b0f3f379badcc65f2bbdd82c13d3c967eb4fb14..8c83b56c6a983b84e3c031f8f8a9db9e2d34f38f 100755 (executable)
@@ -98,6 +98,7 @@ my $dbg_possible = 0;
 my $dbg_type = 0;
 my $dbg_attr = 0;
 my $dbg_adv_dcs = 0;
+my $dbg_adv_checking = 0;
 for my $key (keys %debug) {
        ## no critic
        eval "\${dbg_$key} = '$debug{$key}';";
@@ -2549,7 +2550,8 @@ sub process {
 
                        # Check the condition.
                        my ($cond, $block) = @{$chunks[0]};
-                       #print "CHECKING<$linenr> cond<$cond> block<$block>\n";
+                        print "CHECKING<$linenr> cond<$cond> block<$block>\n"
+                            if $dbg_adv_checking;
                        if (defined $cond) {
                                substr($block, 0, length($cond), '');
                        }