RDMA/core: Introduce RDMA subsystem ibdev_* print functions
authorGal Pressman <galpress@amazon.com>
Wed, 1 May 2019 10:48:13 +0000 (13:48 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 1 May 2019 16:29:28 +0000 (12:29 -0400)
commit923abb9d797ba078f4e9eb3734dd71be5f567a2a
tree31db9356a4c325ce3e1e106bb64b436b639a2e53
parentb9b0f34531e0f8ff7fd0b78adfbc0e8209900f83
RDMA/core: Introduce RDMA subsystem ibdev_* print functions

Similarly to dev/netdev/etc printk helpers, add standard printk helpers
for the RDMA subsystem.

Example output:
efa 0000:00:06.0 efa_0: Hello World!
efa_0: Hello World! (no parent device set)
(NULL ib_device): Hello World! (ibdev is NULL)

Cc: Jason Baron <jbaron@akamai.com>
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Suggested-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c
include/linux/dynamic_debug.h
include/rdma/ib_verbs.h
lib/dynamic_debug.c