mlx5_core: Use mlx5 core style warning
authorEli Cohen <eli@dev.mellanox.co.il>
Tue, 14 Jan 2014 15:45:15 +0000 (17:45 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 23 Jan 2014 07:23:47 +0000 (23:23 -0800)
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>
drivers/net/ethernet/mellanox/mlx5/core/qp.c

index e794184..5105762 100644 (file)
@@ -84,7 +84,8 @@ int mlx5_core_create_qp(struct mlx5_core_dev *dev,
        }
 
        if (out.hdr.status) {
-               pr_warn("current num of QPs 0x%x\n", atomic_read(&dev->num_qps));
+               mlx5_core_warn(dev, "current num of QPs 0x%x\n",
+                              atomic_read(&dev->num_qps));
                return mlx5_cmd_status_to_err(&out.hdr);
        }