Skip to contentSkip to conversation

bnxt_en: add newline to netdev_*() format strings

PATCH Applied Jonathan Lemon 3 participants 7 messages Feb 24, 2020 – Feb 26, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bnxt_en: add newline to netdev_*() format strings

Add missing newlines to netdev_* format strings so the lines aren't buffered by the printk subsystem.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  4 +-
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 10 ++--
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c |  4 +-
 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c  | 48 +++++++++----------
 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c | 10 ++--
 5 files changed, 38 insertions(+), 38 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -2
index fd6e0e48cd51..f9a8151f092c 100644
@@ -11252,7 +11252,7 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp)
 		}
 	}
 	if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
-		netdev_info(bp->dev, "Receive PF driver unload event!");
+		netdev_info(bp->dev, "Receive PF driver unload event!\n");
 }
 
 #else
@@ -11759,7 +11759,7 @@ static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[])
 	u32 dw;
 
 	if (!pos) {
-		netdev_info(bp->dev, "Unable do read adapter's DSN");
+		netdev_info(bp->dev, "Unable do read adapter's DSN\n");
 		return -EOPNOTSUPP;
 	}
 
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +5 -5
index eec0168330b7..d3c93ccee86a 100644
@@ -641,14 +641,14 @@ static int bnxt_dl_params_register(struct bnxt *bp)
 	rc = devlink_params_register(bp->dl, bnxt_dl_params,
 				     ARRAY_SIZE(bnxt_dl_params));
 	if (rc) {
-		netdev_warn(bp->dev, "devlink_params_register failed. rc=%d",
+		netdev_warn(bp->dev, "devlink_params_register failed. rc=%d\n",
 			    rc);
 		return rc;
 	}
 	rc = devlink_port_params_register(&bp->dl_port, bnxt_dl_port_params,
 					  ARRAY_SIZE(bnxt_dl_port_params));
 	if (rc) {
-		netdev_err(bp->dev, "devlink_port_params_register failed");
+		netdev_err(bp->dev, "devlink_port_params_register failed\n");
 		devlink_params_unregister(bp->dl, bnxt_dl_params,
 					  ARRAY_SIZE(bnxt_dl_params));
 		return rc;
@@ -679,7 +679,7 @@ int bnxt_dl_register(struct bnxt *bp)
 	else
 		dl = devlink_alloc(&bnxt_vf_dl_ops, sizeof(struct bnxt_dl));
 	if (!dl) {
-		netdev_warn(bp->dev, "devlink_alloc failed");
+		netdev_warn(bp->dev, "devlink_alloc failed\n");
 		return -ENOMEM;
 	}
 
@@ -692,7 +692,7 @@ int bnxt_dl_register(struct bnxt *bp)
 
 	rc = devlink_register(dl, &bp->pdev->dev);
 	if (rc) {
-		netdev_warn(bp->dev, "devlink_register failed. rc=%d", rc);
+		netdev_warn(bp->dev, "devlink_register failed. rc=%d\n", rc);
 		goto err_dl_free;
 	}
 
@@ -704,7 +704,7 @@ int bnxt_dl_register(struct bnxt *bp)
 			       sizeof(bp->dsn));
 	rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id);
 	if (rc) {
-		netdev_err(bp->dev, "devlink_port_register failed");
+		netdev_err(bp->dev, "devlink_port_register failed\n");
 		goto err_dl_unreg;
 	}
 
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 -2
index 6171fa8b3677..e8fc1671c581 100644
@@ -2028,7 +2028,7 @@ int bnxt_flash_package_from_file(struct net_device *dev, const char *filename,
 	}
 
 	if (fw->size > item_len) {
-		netdev_err(dev, "PKG insufficient update area in nvram: %lu",
+		netdev_err(dev, "PKG insufficient update area in nvram: %lu\n",
 			   (unsigned long)fw->size);
 		rc = -EFBIG;
 	} else {
@@ -3338,7 +3338,7 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len)
 	kfree(coredump.data);
 	*dump_len += sizeof(struct bnxt_coredump_record);
 	if (rc == -ENOBUFS)
-		netdev_err(bp->dev, "Firmware returned large coredump buffer");
+		netdev_err(bp->dev, "Firmware returned large coredump buffer\n");
 	return rc;
 }
 
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c +24 -24

192 lines not on this page · raw message

drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c +5 -5
index b010b34cdaf8..6f2faf81c1ae 100644
@@ -43,7 +43,7 @@ static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx,
 		netdev_dbg(bp->dev, "tx_cfa_action=0x%x, rx_cfa_code=0x%x",
 			   *tx_cfa_action, *rx_cfa_code);
 	} else {
-		netdev_info(bp->dev, "%s error rc=%d", __func__, rc);
+		netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc);
 	}
 
 	mutex_unlock(&bp->hwrm_cmd_lock);
@@ -60,7 +60,7 @@ static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx)
 
 	rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT);
 	if (rc)
-		netdev_info(bp->dev, "%s error rc=%d", __func__, rc);
+		netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc);
 	return rc;
 }
 
@@ -465,7 +465,7 @@ static int bnxt_vf_reps_create(struct bnxt *bp)
 	return 0;
 
 err:
-	netdev_info(bp->dev, "%s error=%d", __func__, rc);
+	netdev_info(bp->dev, "%s error=%d\n", __func__, rc);
 	kfree(cfa_code_map);
 	__bnxt_vf_reps_destroy(bp);
 	return rc;
@@ -488,7 +488,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode,
 
 	mutex_lock(&bp->sriov_lock);
 	if (bp->eswitch_mode == mode) {
-		netdev_info(bp->dev, "already in %s eswitch mode",
+		netdev_info(bp->dev, "already in %s eswitch mode\n",
 			    mode == DEVLINK_ESWITCH_MODE_LEGACY ?
 			    "legacy" : "switchdev");
 		rc = -EINVAL;
@@ -508,7 +508,7 @@ int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode,
 		}
 
 		if (pci_num_vf(bp->pdev) == 0) {
-			netdev_info(bp->dev, "Enable VFs before setting switchdev mode");
+			netdev_info(bp->dev, "Enable VFs before setting switchdev mode\n");
 			rc = -EPERM;
 			goto done;
 		}
Signature · 1 line
2.17.1
maintainer
#1 lore raw

Jonathan, why did you post three copies of this same patch?

#2 lore raw
Quoted 1 line · David Miller

Jonathan, why did you post three copies of this same patch?

Er, what?

I ran "git send-email --dry-run" to confirm the email addresses were correct, (mistyped yours) then ran "git send-email" once (without --dry-run) to actually send the message.

There should be a single posting on the list, are you telling me otherwise?

Signature · 1 line
Jonathan
maintainer Acked-by
#3 lore raw
Quoted 9 lines · Jonathan Lemon
Quoted 1 line · David Miller

Jonathan, why did you post three copies of this same patch?

Er, what?

Quoted 8 lines

I ran "git send-email --dry-run" to confirm the email addresses were correct,
(mistyped yours) then ran "git send-email" once (without --dry-run) to actually
send the message.

There should be a single posting on the list, are you telling me otherwise?

Yes, I saw 3 copies too.

The patch looks good though. Thanks.

#5 lore raw
Quoted 11 lines · David Miller

From: "Jonathan Lemon" <[email protected]>
Date: Tue, 25 Feb 2020 08:16:35 -0800

Quoted 2 lines

There should be a single posting on the list, are you telling me otherwise?

There were three postings:

https://patchwork.ozlabs.org/patch/1243698/
https://patchwork.ozlabs.org/patch/1243701/
https://patchwork.ozlabs.org/patch/1243702/

From the headers on the first one, that should not have gone out; the second was the correction/check, and the third was the actual posting. I'll add some scripts to automate this for next time.

Sorry about the noise.

Signature · 1 line
Jonathan