summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cisco/enic/vnic_cq.c
diff options
context:
space:
mode:
authorGovindarajulu Varadarajan <_govind@gmx.com>2015-08-15 23:14:52 +0300
committerDavid S. Miller <davem@davemloft.net>2015-08-18 01:25:29 +0300
commit6a3c2f838c69406688ed0dbae473c3a08eeb5519 (patch)
tree3203ff3deaaff3f4571f1950bd176db34903feda /drivers/net/ethernet/cisco/enic/vnic_cq.c
parent8b89f3a19de05992a70f727072b65f3ea1397075 (diff)
downloadlinux-6a3c2f838c69406688ed0dbae473c3a08eeb5519.tar.xz
enic: use netdev_<foo> or dev_<foo> instead of pr_<foo>
pr_info does not give any details about the interface involved. This patch uses netdev_info for printing the message. Use dev_info where netdev is not ready. Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/vnic_cq.c')
-rw-r--r--drivers/net/ethernet/cisco/enic/vnic_cq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/vnic_cq.c b/drivers/net/ethernet/cisco/enic/vnic_cq.c
index 0daa1c7073cb..abeda2a9ea27 100644
--- a/drivers/net/ethernet/cisco/enic/vnic_cq.c
+++ b/drivers/net/ethernet/cisco/enic/vnic_cq.c
@@ -24,6 +24,7 @@
#include "vnic_dev.h"
#include "vnic_cq.h"
+#include "enic.h"
void vnic_cq_free(struct vnic_cq *cq)
{
@@ -42,7 +43,7 @@ int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index,
cq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_CQ, index);
if (!cq->ctrl) {
- pr_err("Failed to hook CQ[%d] resource\n", index);
+ vdev_err("Failed to hook CQ[%d] resource\n", index);
return -EINVAL;
}