From patchwork Thu Mar 14 15:36:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 227717 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 070222C00B2 for ; Fri, 15 Mar 2013 02:36:31 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 873274A152; Thu, 14 Mar 2013 16:36:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0v8HG2hkRnaO; Thu, 14 Mar 2013 16:36:29 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DB48F4A153; Thu, 14 Mar 2013 16:36:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF6324A153 for ; Thu, 14 Mar 2013 16:36:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g4Hf7BRNa2WA for ; Thu, 14 Mar 2013 16:36:20 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-gg0-f176.google.com (mail-gg0-f176.google.com [209.85.161.176]) by theia.denx.de (Postfix) with ESMTPS id 83B414A152 for ; Thu, 14 Mar 2013 16:36:18 +0100 (CET) Received: by mail-gg0-f176.google.com with SMTP id q6so406570ggc.21 for ; Thu, 14 Mar 2013 08:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer; bh=bqMgM5OEjLI5KpPKqcwE3GitICFEmDsByhiwgxjgFPA=; b=Ow8jcpkz9zEjw2vuR/rgPwivcGkdKAiEwYhxtSHWBzq3cjoMqSn0uOTIrzrU6kkiXL sUVJ4jKc+AJRIExjXs5CklIHX74JI4AS54qBprA6QWhNdTGtDd+H8TBBECluu275g45Y iENQrPFuV4tBWKkiy+AfiMfOwSszQsSHQUGLA7VVLspMe/YTJH59n1mpmMm5S7xsJCKP 0QnExp3NlG8UvDA+y1u93j/KXqcwlJpmpEqnTACVBC1IUDq2IxrYAiNAgvOlULRcEpHJ MyAnwXnF1ohSWlfpP4pYwvRYp6pVFeJf15CJaeVckfHwTv56Am7ChXKzooxLfmpxUx/N Il7A== X-Received: by 10.236.122.7 with SMTP id s7mr3552872yhh.70.1363275377507; Thu, 14 Mar 2013 08:36:17 -0700 (PDT) Received: from localhost.localdomain (cpe-065-184-250-089.ec.res.rr.com. [65.184.250.89]) by mx.google.com with ESMTPS id g69sm5184659yhh.17.2013.03.14.08.36.15 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Mar 2013 08:36:16 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Thu, 14 Mar 2013 11:36:13 -0400 Message-Id: <1363275373-8823-1-git-send-email-trini@ti.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] checkpatch.pl: Add 'debug' to the list of logFunctions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de While the kernel mainly uses pr_debug(...), etc, for debug messages, we use debug(...). Add this to the list of logFunctions so that they are correctly checked (and not warned against) for long string literals. Signed-off-by: Tom Rini --- tools/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl index 051ba0d..9f23901 100755 --- a/tools/checkpatch.pl +++ b/tools/checkpatch.pl @@ -272,6 +272,7 @@ our $logFunctions = qr{(?x: [a-z0-9]+_(?:printk|emerg|alert|crit|err|warning|warn|notice|info|debug|dbg|vdbg|devel|cont|WARN)(?:_ratelimited|_once|)| WARN(?:_RATELIMIT|_ONCE|)| panic| + debug| MODULE_[A-Z_]+ )};