socsvn commit: r305345 - soc2016/yuanxunzhang/head/sys/net
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Sun Jun 19 07:16:54 UTC 2016
Author: yuanxunzhang
Date: Sun Jun 19 07:16:52 2016
New Revision: 305345
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305345
Log:
EAPS: Kernel debug test
Modified:
soc2016/yuanxunzhang/head/sys/net/if.c
soc2016/yuanxunzhang/head/sys/net/if_clone.c
Modified: soc2016/yuanxunzhang/head/sys/net/if.c
==============================================================================
--- soc2016/yuanxunzhang/head/sys/net/if.c Sun Jun 19 06:00:54 2016 (r305344)
+++ soc2016/yuanxunzhang/head/sys/net/if.c Sun Jun 19 07:16:52 2016 (r305345)
@@ -2677,7 +2677,6 @@
case SIOCIFCREATE2:
error = priv_check(td, PRIV_NET_IFCREATE);
if (error == 0)
- printf("%s: Kernel debug test.\n", __func__);
error = if_clone_create(ifr->ifr_name,
sizeof(ifr->ifr_name),
cmd == SIOCIFCREATE2 ? ifr->ifr_data : NULL);
Modified: soc2016/yuanxunzhang/head/sys/net/if_clone.c
==============================================================================
--- soc2016/yuanxunzhang/head/sys/net/if_clone.c Sun Jun 19 06:00:54 2016 (r305344)
+++ soc2016/yuanxunzhang/head/sys/net/if_clone.c Sun Jun 19 07:16:52 2016 (r305345)
@@ -179,10 +179,13 @@
/* Try to find an applicable cloner for this request */
IF_CLONERS_LOCK();
LIST_FOREACH(ifc, &V_if_cloners, ifc_list)
+ printf("%s: Kernel debug test-1.\n", __func__);
if (ifc->ifc_type == SIMPLE) {
+ printf("%s: Kernel debug test-2.\n", __func__);
if (ifc_simple_match(ifc, name))
break;
} else {
+ printf("%s: Kernel debug test-3.\n", __func__);
if (ifc->ifc_match(ifc, name))
break;
}
@@ -216,7 +219,7 @@
{
int err;
struct ifnet *ifp;
-
+ printf("%s: Kernel debug test-4.\n", __func__);
if (ifunit(name) != NULL)
return (EEXIST);
More information about the svn-soc-all
mailing list