IB/ipoib: Replace printk with pr_warn
pr_* is the preferred way to print messages, replace all printk(KERN_WARN, ...) with pr_warn. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Zhu Yanjun <yanjun.zhu@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
f4cd9d588e
commit
c55359a23c
@@ -1663,8 +1663,8 @@ static int ipoib_dev_init_default(struct net_device *dev)
|
||||
|
||||
priv->tx_ring = vzalloc(ipoib_sendq_size * sizeof *priv->tx_ring);
|
||||
if (!priv->tx_ring) {
|
||||
printk(KERN_WARNING "%s: failed to allocate TX ring (%d entries)\n",
|
||||
priv->ca->name, ipoib_sendq_size);
|
||||
pr_warn("%s: failed to allocate TX ring (%d entries)\n",
|
||||
priv->ca->name, ipoib_sendq_size);
|
||||
goto out_rx_ring_cleanup;
|
||||
}
|
||||
|
||||
@@ -2204,8 +2204,7 @@ static struct net_device *ipoib_add_port(const char *format,
|
||||
|
||||
result = ib_query_port(hca, port, &attr);
|
||||
if (result) {
|
||||
printk(KERN_WARNING "%s: ib_query_port %d failed\n",
|
||||
hca->name, port);
|
||||
pr_warn("%s: ib_query_port %d failed\n", hca->name, port);
|
||||
goto device_init_failed;
|
||||
}
|
||||
|
||||
@@ -2220,8 +2219,8 @@ static struct net_device *ipoib_add_port(const char *format,
|
||||
|
||||
result = ib_query_pkey(hca, port, 0, &priv->pkey);
|
||||
if (result) {
|
||||
printk(KERN_WARNING "%s: ib_query_pkey port %d failed (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
pr_warn("%s: ib_query_pkey port %d failed (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
goto device_init_failed;
|
||||
}
|
||||
|
||||
@@ -2238,8 +2237,8 @@ static struct net_device *ipoib_add_port(const char *format,
|
||||
|
||||
result = ib_query_gid(hca, port, 0, &priv->local_gid, NULL);
|
||||
if (result) {
|
||||
printk(KERN_WARNING "%s: ib_query_gid port %d failed (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
pr_warn("%s: ib_query_gid port %d failed (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
goto device_init_failed;
|
||||
}
|
||||
|
||||
@@ -2249,8 +2248,8 @@ static struct net_device *ipoib_add_port(const char *format,
|
||||
|
||||
result = ipoib_dev_init(priv->dev, hca, port);
|
||||
if (result) {
|
||||
printk(KERN_WARNING "%s: failed to initialize port %d (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
pr_warn("%s: failed to initialize port %d (ret = %d)\n",
|
||||
hca->name, port, result);
|
||||
goto device_init_failed;
|
||||
}
|
||||
|
||||
@@ -2260,8 +2259,8 @@ static struct net_device *ipoib_add_port(const char *format,
|
||||
|
||||
result = register_netdev(priv->dev);
|
||||
if (result) {
|
||||
printk(KERN_WARNING "%s: couldn't register ipoib port %d; error %d\n",
|
||||
hca->name, port, result);
|
||||
pr_warn("%s: couldn't register ipoib port %d; error %d\n",
|
||||
hca->name, port, result);
|
||||
goto register_failed;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user