public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [resend/refresh PATCH] infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses
@ 2015-05-08 22:58 Joe Perches
  2015-05-12 19:53 ` Doug Ledford
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Perches @ 2015-05-08 22:58 UTC (permalink / raw)
  To: Doug Ledford
  Cc: Andrew Morton, Eli Cohen, Steve Wise, LKML, Sean Hefty,
	Hal Rosenstock, Rasmus Villemoes

These KERN_<LEVEL> uses are unnecessary with pr_<level> and cause
bad logging output so remove them.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
---

Originally sent Jan 5,  This is refreshed against -next.

Now sent to the new maintainer too.

Rasmus Villemoes sent a similar patchset a month later.
https://lkml.org/lkml/2015/2/5/724

Rasmus' had an additional change that's useful.
I don't care which is applied.

 drivers/infiniband/hw/cxgb4/device.c | 4 ++--
 drivers/infiniband/hw/mlx4/main.c    | 3 +--
 drivers/infiniband/hw/mlx5/qp.c      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index cf54d69..7e895d7 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -1386,7 +1386,7 @@ static void recover_lost_dbs(struct uld_ctx *ctx, struct qp_list *qp_list)
 					  t4_sq_host_wq_pidx(&qp->wq),
 					  t4_sq_wq_size(&qp->wq));
 		if (ret) {
-			pr_err(KERN_ERR MOD "%s: Fatal error - "
+			pr_err(MOD "%s: Fatal error - "
 			       "DB overflow recovery failed - "
 			       "error syncing SQ qid %u\n",
 			       pci_name(ctx->lldi.pdev), qp->wq.sq.qid);
@@ -1402,7 +1402,7 @@ static void recover_lost_dbs(struct uld_ctx *ctx, struct qp_list *qp_list)
 					  t4_rq_wq_size(&qp->wq));
 
 		if (ret) {
-			pr_err(KERN_ERR MOD "%s: Fatal error - "
+			pr_err(MOD "%s: Fatal error - "
 			       "DB overflow recovery failed - "
 			       "error syncing RQ qid %u\n",
 			       pci_name(ctx->lldi.pdev), qp->wq.rq.qid);
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 57070c5..cc64400 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -1569,8 +1569,7 @@ static void reset_gids_task(struct work_struct *work)
 			       MLX4_CMD_TIME_CLASS_B,
 			       MLX4_CMD_WRAPPED);
 		if (err)
-			pr_warn(KERN_WARNING
-				"set port %d command failed\n", gw->port);
+			pr_warn("set port %d command failed\n", gw->port);
 	}
 
 	mlx4_free_cmd_mailbox(dev, mailbox);
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 4d7024b..d35f62d 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -1392,7 +1392,7 @@ static int mlx5_set_path(struct mlx5_ib_dev *dev, const struct ib_ah_attr *ah,
 
 	if (ah->ah_flags & IB_AH_GRH) {
 		if (ah->grh.sgid_index >= gen->port[port - 1].gid_table_len) {
-			pr_err(KERN_ERR "sgid_index (%u) too large. max is %d\n",
+			pr_err("sgid_index (%u) too large. max is %d\n",
 			       ah->grh.sgid_index, gen->port[port - 1].gid_table_len);
 			return -EINVAL;
 		}



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [resend/refresh PATCH] infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses
  2015-05-08 22:58 [resend/refresh PATCH] infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses Joe Perches
@ 2015-05-12 19:53 ` Doug Ledford
  0 siblings, 0 replies; 2+ messages in thread
From: Doug Ledford @ 2015-05-12 19:53 UTC (permalink / raw)
  To: Joe Perches
  Cc: Andrew Morton, Eli Cohen, Steve Wise, LKML, Sean Hefty,
	Hal Rosenstock, Rasmus Villemoes

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

On Fri, 2015-05-08 at 15:58 -0700, Joe Perches wrote:
> These KERN_<LEVEL> uses are unnecessary with pr_<level> and cause
> bad logging output so remove them.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> Acked-by: Steve Wise <swise@opengridcomputing.com>
> ---
> 
> Originally sent Jan 5,  This is refreshed against -next.
> 
> Now sent to the new maintainer too.
> 
> Rasmus Villemoes sent a similar patchset a month later.
> https://lkml.org/lkml/2015/2/5/724
> 
> Rasmus' had an additional change that's useful.
> I don't care which is applied.

Applied, thanks.


-- 
Doug Ledford <dledford@redhat.com>
              GPG KeyID: 0E572FDD


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-12 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08 22:58 [resend/refresh PATCH] infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses Joe Perches
2015-05-12 19:53 ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox