diff options
author | Jon Mason <jon.mason@intel.com> | 2013-01-19 04:02:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-20 18:48:14 -0500 |
commit | 7bcd2b111f3ac77370ec7efe93e16e19878827c1 (patch) | |
tree | 745cf29127e91550765ed829d58ca8c1ca0d179c /drivers/net/ntb_netdev.c | |
parent | d723485cb4ca9eefaf43fd9f165554094b97f2c2 (diff) |
ntb_netdev: improve logging
Improve driver logging to be more helpful
Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ntb_netdev.c')
-rw-r--r-- | drivers/net/ntb_netdev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ntb_netdev.c b/drivers/net/ntb_netdev.c index 07c06cdb97b4..1626dc198f52 100644 --- a/drivers/net/ntb_netdev.c +++ b/drivers/net/ntb_netdev.c | |||
@@ -152,7 +152,7 @@ static netdev_tx_t ntb_netdev_start_xmit(struct sk_buff *skb, | |||
152 | struct ntb_netdev *dev = netdev_priv(ndev); | 152 | struct ntb_netdev *dev = netdev_priv(ndev); |
153 | int rc; | 153 | int rc; |
154 | 154 | ||
155 | netdev_dbg(ndev, "ntb_transport_tx_enqueue\n"); | 155 | netdev_dbg(ndev, "%s: skb len %d\n", __func__, skb->len); |
156 | 156 | ||
157 | rc = ntb_transport_tx_enqueue(dev->qp, skb, skb->data, skb->len); | 157 | rc = ntb_transport_tx_enqueue(dev->qp, skb, skb->data, skb->len); |
158 | if (rc) | 158 | if (rc) |
@@ -353,7 +353,7 @@ static int ntb_netdev_probe(struct pci_dev *pdev) | |||
353 | goto err1; | 353 | goto err1; |
354 | 354 | ||
355 | list_add(&dev->list, &dev_list); | 355 | list_add(&dev->list, &dev_list); |
356 | pr_info("%s: %s created\n", KBUILD_MODNAME, ndev->name); | 356 | dev_info(&pdev->dev, "%s created\n", ndev->name); |
357 | return 0; | 357 | return 0; |
358 | 358 | ||
359 | err1: | 359 | err1: |
@@ -404,6 +404,5 @@ static void __exit ntb_netdev_exit_module(void) | |||
404 | { | 404 | { |
405 | ntb_unregister_client(&ntb_netdev_client); | 405 | ntb_unregister_client(&ntb_netdev_client); |
406 | ntb_unregister_client_dev(KBUILD_MODNAME); | 406 | ntb_unregister_client_dev(KBUILD_MODNAME); |
407 | pr_info("%s: Driver removed\n", KBUILD_MODNAME); | ||
408 | } | 407 | } |
409 | module_exit(ntb_netdev_exit_module); | 408 | module_exit(ntb_netdev_exit_module); |