From: Tom Rini Date: Thu, 14 Mar 2013 11:36:13 -0400 Subject: [U-Boot] [PATCH] checkpatch.pl: Add 'debug' to the list of logFunctions Message-ID: <1363275373-8823-1-git-send-email-trini@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@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_]+ )}; -- 1.7.9.5