Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752169AbYLRQYY (ORCPT ); Thu, 18 Dec 2008 11:24:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751412AbYLRQYM (ORCPT ); Thu, 18 Dec 2008 11:24:12 -0500 Received: from vervifontaine.sonytel.be ([80.88.33.193]:54844 "EHLO vervifontaine.sonycom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751358AbYLRQYI (ORCPT ); Thu, 18 Dec 2008 11:24:08 -0500 Date: Thu, 18 Dec 2008 17:24:06 +0100 (CET) From: Geert Uytterhoeven To: Andy Whitcroft , Joel Schopp , Randy Dunlap cc: Linux Kernel Development Subject: checkpatch and pr_fmt()? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using the recently introduced pr_fmt() infrastructure (commit d091c2f58ba32029495a933b721e8e02fbd12caa, "Add 'pr_fmt()' format modifier to pr_xyz macros."), checkpatch spits out the following annoying error: | ERROR: Macros with complex values should be enclosed in parenthesis | +#define pr_fmt(fmt) "%s: " fmt, __func__ Unfortunately, adding parentheses is not a solution, as it creates illegal C code. With kind regards, Geert Uytterhoeven Software Architect Sony Techsoft Centre Europe The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium Phone: +32 (0)2 700 8453 Fax: +32 (0)2 700 8622 E-mail: Geert.Uytterhoeven@sonycom.com Internet: http://www.sony-europe.com/ A division of Sony Europe (Belgium) N.V. VAT BE 0413.825.160 · RPR Brussels Fortis · BIC GEBABEBB · IBAN BE41293037680010 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/