diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-20 16:42:23 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-09-26 13:51:48 -0600 |
commit | 43c7c851b9bce9e6091f2c882871a3b388aa38c3 (patch) | |
tree | 5b9196b160b6373dfef148506a153130786f88e8 /drivers/infiniband/core/fmr_pool.c | |
parent | e349f858d29f300ad9ad327fd57735a1d15e147f (diff) | |
download | linux-stable-43c7c851b9bce9e6091f2c882871a3b388aa38c3.tar.gz linux-stable-43c7c851b9bce9e6091f2c882871a3b388aa38c3.tar.bz2 linux-stable-43c7c851b9bce9e6091f2c882871a3b388aa38c3.zip |
RDMA/core: Use dev_err/dbg/etc instead of pr_* + ibdev->name
Any messages related to a device should be printed with the dev_*
formatters. This provides greater consistency for the user.
The core does not set pr_fmt so this has no significant change.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Diffstat (limited to 'drivers/infiniband/core/fmr_pool.c')
-rw-r--r-- | drivers/infiniband/core/fmr_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/fmr_pool.c b/drivers/infiniband/core/fmr_pool.c index a077500f7f32..d1f2eee7d5da 100644 --- a/drivers/infiniband/core/fmr_pool.c +++ b/drivers/infiniband/core/fmr_pool.c @@ -213,7 +213,7 @@ struct ib_fmr_pool *ib_create_fmr_pool(struct ib_pd *pd, device = pd->device; if (!device->alloc_fmr || !device->dealloc_fmr || !device->map_phys_fmr || !device->unmap_fmr) { - pr_info(PFX "Device %s does not support FMRs\n", device->name); + dev_info(&device->dev, "Device does not support FMRs\n"); return ERR_PTR(-ENOSYS); } |