mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-24 13:44:06 +01:00
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,7 +147,8 @@ bool netdev_init(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL);
|
if (getenv("IWD_RTNL_DEBUG"))
|
||||||
|
l_netlink_set_debug(rtnl, do_debug, "[RTNL] ", NULL);
|
||||||
|
|
||||||
netdev_list = l_hashmap_new();
|
netdev_list = l_hashmap_new();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user