Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755645AbbFOOms (ORCPT ); Mon, 15 Jun 2015 10:42:48 -0400 Received: from smtprelay0133.hostedemail.com ([216.40.44.133]:54630 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754143AbbFOOmj (ORCPT ); Mon, 15 Jun 2015 10:42:39 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:968:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3868:3871:4321:5007:6119:6261:6742:10004:10400:10848:11026:11232:11473:11658:11914:12043:12296:12517:12519:12740:13069:13255:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: lamp20_338dbf83b2161 X-Filterd-Recvd-Size: 1652 Message-ID: <1434379353.2507.52.camel@perches.com> Subject: Re: [PATCH 2/2] apei/erst-dbg: Define pr_fmt macro to avoid the duplication of ERST_DBG_PFX From: Joe Perches To: Wang Long Cc: rjw@rjwysocki.net, lenb@kernel.org, ying.huang@intel.com, tony.luck@intel.com, bp@suse.de, gong.chen@linux.intel.com, tomasz.nowicki@linaro.org, lv.zheng@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, wanglong@laoqinren.net, peifeiyue@huawei.com Date: Mon, 15 Jun 2015 07:42:33 -0700 In-Reply-To: <1434362250-217135-2-git-send-email-long.wanglong@huawei.com> References: <1434362250-217135-1-git-send-email-long.wanglong@huawei.com> <1434362250-217135-2-git-send-email-long.wanglong@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 743 Lines: 23 On Mon, 2015-06-15 at 09:57 +0000, Wang Long wrote: > Define pr_fmt macro with {ERST DBG: } prefix, then remove all use > of ERST_DBG_PFXin the pr_* functions. [] > diff --git a/drivers/acpi/apei/erst-dbg.c b/drivers/acpi/apei/erst-dbg.c [] > @@ -31,7 +31,8 @@ > > #include "apei-internal.h" > > -#define ERST_DBG_PFX "ERST DBG: " > +#undef pr_fmt > +#define pr_fmt(fmt) "ERST DBG: " fmt Moving this #define above the first #include is what's generally done and doesn't require an #undef -- 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/