From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8JVU-0007LC-J5 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-00063e-Gw 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]:57642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8JVT-00063a-DZ for qemu-devel@nongnu.org; Sun, 02 Sep 2012 19:23:07 -0400 From: Don Slutz Date: Sun, 2 Sep 2012 19:22:35 -0400 Message-ID: <1346628158-30403-2-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 1/4] CHECKPATCH: Add --debug adv_dcs 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 | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b98dc6c..0b0f3f3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -97,6 +97,7 @@ my $dbg_values = 0; my $dbg_possible = 0; my $dbg_type = 0; my $dbg_attr = 0; +my $dbg_adv_dcs = 0; for my $key (keys %debug) { ## no critic eval "\${dbg_$key} = '$debug{$key}';"; @@ -2575,6 +2576,8 @@ sub process { $allowed = 1; } } + print "DCS: level=$level block<$block> allowed=$allowed\n" + if $dbg_adv_dcs; if ($level == 0 && $block !~ /^\s*\{/ && !$allowed) { my $herectx = $here . "\n";; my $cnt = statement_rawlines($block); -- 1.7.1