Skip to content

Commit

Permalink
net/bnxt: improve probing log message
Browse files Browse the repository at this point in the history
[ upstream commit 4a8ac37 ]

The existing log message is missing a space. Modified it to
a more meaningful log as part of this change.

Before this patch:

bnxt_dev_init(): bnxtfound at mem D67E0000, node addr 0x2101112000M

With this patch:

bnxt_dev_init(): Found bnxt device at mem D67E0000, node addr 0x2101112000M

Fixes: 1bf01f5 ("net/bnxt: prevent device access when device is in reset")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Kalesh AP authored and bluca committed Jul 12, 2021
1 parent a2e10ac commit 386efec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/bnxt/bnxt_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5689,7 +5689,8 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev, void *params __rte_unused)
goto error_free;

PMD_DRV_LOG(INFO,
DRV_MODULE_NAME "found at mem %" PRIX64 ", node addr %pM\n",
"Found %s device at mem %" PRIX64 ", node addr %pM\n",
DRV_MODULE_NAME,
pci_dev->mem_resource[0].phys_addr,
pci_dev->mem_resource[0].addr);

Expand Down

0 comments on commit 386efec

Please sign in to comment.