diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-01-14 10:45:15 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-23 02:23:47 -0500 |
commit | 042b9adae899e1b497282d92205d3fef42d5ca8d (patch) | |
tree | e966dcb0c6969ec6598a3250a34c8766eeb57af3 | |
parent | 0b6e81b91070bdbe0defb9101384ebb26835e401 (diff) |
mlx5_core: Use mlx5 core style warning
Use mlx5_core_warn(), which is the standard warning emitter function, instead
of pr_warn().
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/qp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/qp.c b/drivers/net/ethernet/mellanox/mlx5/core/qp.c index e7941843a72d..510576213dd0 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/qp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/qp.c | |||
@@ -84,7 +84,8 @@ int mlx5_core_create_qp(struct mlx5_core_dev *dev, | |||
84 | } | 84 | } |
85 | 85 | ||
86 | if (out.hdr.status) { | 86 | if (out.hdr.status) { |
87 | pr_warn("current num of QPs 0x%x\n", atomic_read(&dev->num_qps)); | 87 | mlx5_core_warn(dev, "current num of QPs 0x%x\n", |
88 | atomic_read(&dev->num_qps)); | ||
88 | return mlx5_cmd_status_to_err(&out.hdr); | 89 | return mlx5_cmd_status_to_err(&out.hdr); |
89 | } | 90 | } |
90 | 91 | ||