From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8JVU-0007Lq-QL for qemu-devel@nongnu.org; Sun, 02 Sep 2012 19:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8JVT-00063n-VK for qemu-devel@nongnu.org; Sun, 02 Sep 2012 19:23:08 -0400 Received: from hub021-nj-6.exch021.serverdata.net ([206.225.164.222]:35485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8JVT-00063i-Rk for qemu-devel@nongnu.org; Sun, 02 Sep 2012 19:23:07 -0400 From: Don Slutz Date: Sun, 2 Sep 2012 19:22:36 -0400 Message-ID: <1346628158-30403-3-git-send-email-Don@CloudSwitch.com> In-Reply-To: <1346515062-13067-1-git-send-email-Don@CloudSwitch.com> References: <1346515062-13067-1-git-send-email-Don@CloudSwitch.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 2/4] CHECKPATCH: Add --debug adv_checking List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, blauwirbel@gmail.comqemu-devel@nongnu.orgblauwirbel@gmail.com Cc: Don Slutz 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 --- scripts/checkpatch.pl | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0b0f3f3..8c83b56 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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), ''); } -- 1.7.1