core: Only enable RTNL debugging when IWD_RTNL_DEBUG is set
This commit is contained in:
parent
32c415e4e8
commit
af2bb68e07
|
@ -24,6 +24,7 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <linux/rtnetlink.h>
|
#include <linux/rtnetlink.h>
|
||||||
#include <net/if_arp.h>
|
#include <net/if_arp.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
|
@ -146,6 +147,7 @@ bool netdev_init(void)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv("IWD_RTNL_DEBUG"))
|
||||||
l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL);
|
l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL);
|
||||||
|
|
||||||
netdev_list = l_hashmap_new();
|
netdev_list = l_hashmap_new();
|
||||||
|
|
Loading…
Reference in New Issue