mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 14:22:36 +01:00
core: Only enable netlink debugging when IWD_GENL_DEBUG is set
This commit is contained in:
parent
34f5c56199
commit
d04ecde554
@ -24,6 +24,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "linux/nl80211.h"
|
#include "linux/nl80211.h"
|
||||||
@ -66,6 +67,7 @@ bool wiphy_init(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv("IWD_GENL_DEBUG"))
|
||||||
l_genl_set_debug(genl, do_debug, "[GENL] ", NULL);
|
l_genl_set_debug(genl, do_debug, "[GENL] ", NULL);
|
||||||
|
|
||||||
l_debug("Opening nl80211 interface");
|
l_debug("Opening nl80211 interface");
|
||||||
|
Loading…
Reference in New Issue
Block a user