diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2012-06-19 10:21:35 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-07-09 03:05:06 +0200 |
commit | b1d8eb5a213640f1be98a90e73a241d15b70045c (patch) | |
tree | c9bb2f511c0cddfec0e56da9f7c29e5f22ad1a40 /drivers/infiniband/hw/mlx4/mlx4_ib.h | |
parent | mlx4_core: Pass an invalid PCI id number to VFs (diff) | |
download | linux-b1d8eb5a213640f1be98a90e73a241d15b70045c.tar.xz linux-b1d8eb5a213640f1be98a90e73a241d15b70045c.zip |
IB/mlx4: Add debug prints
Define pr_fmt and add some pr_debug prints.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/mlx4_ib.h')
-rw-r--r-- | drivers/infiniband/hw/mlx4/mlx4_ib.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/mlx4_ib.h b/drivers/infiniband/hw/mlx4/mlx4_ib.h index ff36655d23d3..5f298afaa81f 100644 --- a/drivers/infiniband/hw/mlx4/mlx4_ib.h +++ b/drivers/infiniband/hw/mlx4/mlx4_ib.h @@ -44,6 +44,16 @@ #include <linux/mlx4/device.h> #include <linux/mlx4/doorbell.h> +#define MLX4_IB_DRV_NAME "mlx4_ib" + +#ifdef pr_fmt +#undef pr_fmt +#endif +#define pr_fmt(fmt) "<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__ + +#define mlx4_ib_warn(ibdev, format, arg...) \ + dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg) + enum { MLX4_IB_SQ_MIN_WQE_SHIFT = 6, MLX4_IB_MAX_HEADROOM = 2048 |