Commit 5424302e authored by Don Slutz's avatar Don Slutz Committed by Blue Swirl

CHECKPATCH: Add --debug adv_checking

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: default avatarDon Slutz <Don@CloudSwitch.com>
Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent a99ac041
......@@ -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), '');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment