mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 23:27:42 +07:00
IB/mad: Add port_num to error message
Print the invalid port number to ease troubleshooting. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
1dd70ea360
commit
f57e8ca50e
@ -316,7 +316,9 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device,
|
|||||||
/* Validate device and port */
|
/* Validate device and port */
|
||||||
port_priv = ib_get_mad_port(device, port_num);
|
port_priv = ib_get_mad_port(device, port_num);
|
||||||
if (!port_priv) {
|
if (!port_priv) {
|
||||||
dev_notice(&device->dev, "ib_register_mad_agent: Invalid port\n");
|
dev_notice(&device->dev,
|
||||||
|
"ib_register_mad_agent: Invalid port %d\n",
|
||||||
|
port_num);
|
||||||
ret = ERR_PTR(-ENODEV);
|
ret = ERR_PTR(-ENODEV);
|
||||||
goto error1;
|
goto error1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user