diff mbox

[dpdk-dev,v3,17/19] kni: updated log messages

Message ID 20160926153938.7575-18-ferruh.yigit@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers show

Commit Message

Ferruh Yigit Sept. 26, 2016, 3:39 p.m. UTC
Remove some function entrance logs and changed log level of some logs.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 lib/librte_eal/linuxapp/kni/kni_misc.c | 5 -----
 lib/librte_eal/linuxapp/kni/kni_net.c  | 6 ++----
 2 files changed, 2 insertions(+), 9 deletions(-)
diff mbox

Patch

diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c
index bc43e5f..a0b8199 100644
--- a/lib/librte_eal/linuxapp/kni/kni_misc.c
+++ b/lib/librte_eal/linuxapp/kni/kni_misc.c
@@ -616,8 +616,6 @@  kni_init(void)
 {
 	int rc;
 
-	pr_debug("######## DPDK kni module loading ########\n");
-
 	if (kni_parse_kthread_mode() < 0) {
 		pr_err("Invalid parameter for kthread_mode\n");
 		return -EINVAL;
@@ -645,8 +643,6 @@  kni_init(void)
 	/* Configure the lo mode according to the input parameter */
 	kni_net_config_lo_mode(lo_mode);
 
-	pr_debug("######## DPDK kni module loaded  ########\n");
-
 	return 0;
 
 out:
@@ -667,7 +663,6 @@  kni_exit(void)
 #else
 	unregister_pernet_gen_subsys(kni_net_id, &kni_net_ops);
 #endif
-	pr_debug("####### DPDK kni module unloaded  #######\n");
 }
 
 module_init(kni_init);
diff --git a/lib/librte_eal/linuxapp/kni/kni_net.c b/lib/librte_eal/linuxapp/kni/kni_net.c
index dfc6b37..e9df9ec 100644
--- a/lib/librte_eal/linuxapp/kni/kni_net.c
+++ b/lib/librte_eal/linuxapp/kni/kni_net.c
@@ -586,8 +586,8 @@  kni_net_tx_timeout(struct net_device *dev)
 static int
 kni_net_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 {
-	pr_debug("kni_net_ioctl %d\n",
-		((struct kni_dev *)netdev_priv(dev))->group_id);
+	pr_debug("kni_net_ioctl group:%d cmd:%d\n",
+		((struct kni_dev *)netdev_priv(dev))->group_id, cmd);
 
 	return 0;
 }
@@ -730,8 +730,6 @@  kni_net_init(struct net_device *dev)
 {
 	struct kni_dev *kni = netdev_priv(dev);
 
-	pr_debug("kni_net_init\n");
-
 	init_waitqueue_head(&kni->wq);
 	mutex_init(&kni->sync_lock);