git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ffec9
)
net/nfp: use macro for PCI log format
author
Yunjian Wang
<wangyunjian@huawei.com>
Mon, 13 Jan 2020 13:49:35 +0000
(21:49 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:59:19 +0000
(19:59 +0100)
Use PCI_PRI_FMT instead of "%04d:%02d:%02d:%d" print format.
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Heinrich Kuhn <heinrich.kuhn@netronome.com>
drivers/net/nfp/nfp_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/nfp/nfp_net.c
b/drivers/net/nfp/nfp_net.c
index
3aafa7f
..
64d9d21
100644
(file)
--- a/
drivers/net/nfp/nfp_net.c
+++ b/
drivers/net/nfp/nfp_net.c
@@
-1377,9
+1377,9
@@
nfp_net_dev_link_status_print(struct rte_eth_dev *dev)
PMD_DRV_LOG(INFO, " Port %d: Link Down",
dev->data->port_id);
- PMD_DRV_LOG(INFO, "PCI Address:
%04d:%02d:%02d:%d"
,
- pci_dev->addr.domain, pci_dev->addr.bus,
- pci_dev->addr.devid, pci_dev->addr.function);
+ PMD_DRV_LOG(INFO, "PCI Address:
" PCI_PRI_FMT
,
+
pci_dev->addr.domain, pci_dev->addr.bus,
+
pci_dev->addr.devid, pci_dev->addr.function);
}
/* Interrupt configuration and handling */