From patchwork Sun Sep 2 23:22:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Slutz X-Patchwork-Id: 181273 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CF4742C0093 for ; Mon, 3 Sep 2012 09:23:38 +1000 (EST) Received: from localhost ([::1]:60032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8JVw-0008DN-RC for incoming@patchwork.ozlabs.org; Sun, 02 Sep 2012 19:23:36 -0400 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 Received: from localhost.localdomain (131.239.15.22) by east.exch021.serverdata.net (10.240.4.93) with Microsoft SMTP Server (TLS) id 14.2.309.2; Sun, 2 Sep 2012 16:23:07 -0700 From: Don Slutz To: , , , Date: Sun, 2 Sep 2012 19:22:35 -0400 Message-ID: <1346628158-30403-2-git-send-email-Don@CloudSwitch.com> X-Mailer: git-send-email 1.7.1 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 X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-Received-From: 206.225.164.222 Cc: Don Slutz Subject: [Qemu-devel] [PATCH v2 1/4] CHECKPATCH: Add --debug adv_dcs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);