diff options
author | Yuval Shaia <yuval.shaia@oracle.com> | 2017-01-19 16:48:31 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 14:20:42 -0500 |
commit | f57e8ca50e23b9e69b2d9f057ca07f9817daab09 (patch) | |
tree | b9acc8b5382d9842c798920b992e290b0f64a433 | |
parent | 1dd70ea36077f320dadad120d1a611b9ce706ea5 (diff) | |
download | linux-f57e8ca50e23b9e69b2d9f057ca07f9817daab09.tar.bz2 |
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>
-rw-r--r-- | drivers/infiniband/core/mad.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index a009f7132c73..57f231f1c721 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c @@ -316,7 +316,9 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device, /* Validate device and port */ port_priv = ib_get_mad_port(device, port_num); 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); goto error1; } |