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>
This commit is contained in:
Jon Mason 2013-01-19 02:02:34 -07:00 committed by Greg Kroah-Hartman
parent d723485cb4
commit 7bcd2b111f
1 changed files with 2 additions and 3 deletions

View File

@ -152,7 +152,7 @@ static netdev_tx_t ntb_netdev_start_xmit(struct sk_buff *skb,
struct ntb_netdev *dev = netdev_priv(ndev); struct ntb_netdev *dev = netdev_priv(ndev);
int rc; int rc;
netdev_dbg(ndev, "ntb_transport_tx_enqueue\n"); netdev_dbg(ndev, "%s: skb len %d\n", __func__, skb->len);
rc = ntb_transport_tx_enqueue(dev->qp, skb, skb->data, skb->len); rc = ntb_transport_tx_enqueue(dev->qp, skb, skb->data, skb->len);
if (rc) if (rc)
@ -353,7 +353,7 @@ static int ntb_netdev_probe(struct pci_dev *pdev)
goto err1; goto err1;
list_add(&dev->list, &dev_list); list_add(&dev->list, &dev_list);
pr_info("%s: %s created\n", KBUILD_MODNAME, ndev->name); dev_info(&pdev->dev, "%s created\n", ndev->name);
return 0; return 0;
err1: err1:
@ -404,6 +404,5 @@ static void __exit ntb_netdev_exit_module(void)
{ {
ntb_unregister_client(&ntb_netdev_client); ntb_unregister_client(&ntb_netdev_client);
ntb_unregister_client_dev(KBUILD_MODNAME); ntb_unregister_client_dev(KBUILD_MODNAME);
pr_info("%s: Driver removed\n", KBUILD_MODNAME);
} }
module_exit(ntb_netdev_exit_module); module_exit(ntb_netdev_exit_module);