RE: [PATCH 1/4] cxgb3: Use more common logging style

From: Steve Wise
Date: Thu Feb 09 2017 - 17:43:42 EST


> Subject: [PATCH 1/4] cxgb3: Use more common logging style
>
> Convert printks to pr_<level>
>
> Miscellanea:
>
> o Coalesce formats
> o Realign arguments
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---
> 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(-)

<snip>

> 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 <swise@xxxxxxxxxxxxxxxxxxxxx>