From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753722AbdBIWn0 (ORCPT ); Thu, 9 Feb 2017 17:43:26 -0500 Received: from smtp.opengridcomputing.com ([72.48.136.20]:47381 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752815AbdBIWnX (ORCPT ); Thu, 9 Feb 2017 17:43:23 -0500 From: "Steve Wise" To: "'Joe Perches'" Cc: "'Doug Ledford'" , "'Sean Hefty'" , "'Hal Rosenstock'" , , References: <15772862930dfd2f2e10574b86c063d781976a89.1486678686.git.joe@perches.com> In-Reply-To: <15772862930dfd2f2e10574b86c063d781976a89.1486678686.git.joe@perches.com> Subject: RE: [PATCH 1/4] cxgb3: Use more common logging style Date: Thu, 9 Feb 2017 16:34:21 -0600 Message-ID: <04c801d28324$a8459740$f8d0c5c0$@opengridcomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQE3l8a0Ex4Du7XXJL7q5vsjOCa/2wH54SecoodKTpA= Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: [PATCH 1/4] cxgb3: Use more common logging style > > Convert printks to pr_ > > Miscellanea: > > o Coalesce formats > o Realign arguments > > Signed-off-by: Joe Perches > --- > drivers/infiniband/hw/cxgb3/cxio_hal.c | 27 ++++++------ > drivers/infiniband/hw/cxgb3/cxio_hal.h | 9 +++- > drivers/infiniband/hw/cxgb3/cxio_resource.c | 5 ++- > drivers/infiniband/hw/cxgb3/iwch.c | 13 +++--- > drivers/infiniband/hw/cxgb3/iwch_cm.c | 66 ++++++++++++----------------- > drivers/infiniband/hw/cxgb3/iwch_cq.c | 7 ++- > drivers/infiniband/hw/cxgb3/iwch_ev.c | 11 +++-- > drivers/infiniband/hw/cxgb3/iwch_provider.c | 11 ++--- > drivers/infiniband/hw/cxgb3/iwch_qp.c | 7 ++- > 9 files changed, 70 insertions(+), 86 deletions(-) > diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.h > b/drivers/infiniband/hw/cxgb3/cxio_hal.h > index 78fbe9ffe7f0..115c0e3a5df5 100644 > --- a/drivers/infiniband/hw/cxgb3/cxio_hal.h > +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.h > @@ -196,8 +196,13 @@ int cxio_poll_cq(struct t3_wq *wq, struct t3_cq *cq, struct > t3_cqe *cqe, > u8 *cqe_flushed, u64 *cookie, u32 *credit); > int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb); > > -#define MOD "iw_cxgb3: " > -#define PDBG(fmt, args...) pr_debug(MOD fmt, ## args) > +#ifdef pr_fmt > +#undef pr_fmt > +#endif Is the ifdef/undef needed? I see other modules just define pr_fmt() regardless. Otherwise, looks good (and thanks). Reviewed-by: Steve Wise