3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

core: Only enable RTNL debugging when IWD_RTNL_DEBUG is set

This commit is contained in:
Marcel Holtmann 2014-08-07 05:28:58 +02:00
parent 32c415e4e8
commit af2bb68e07

View File

@ -24,6 +24,7 @@
#include <config.h>
#endif
#include <stdlib.h>
#include <linux/rtnetlink.h>
#include <net/if_arp.h>
#include <net/if.h>
@ -146,7 +147,8 @@ bool netdev_init(void)
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();