From d2e3f11d8e7b6a2484de888ee2e4bf09ca67ff19 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 22 Dec 2010 15:52:06 +0100 Subject: [PATCH] wifi: Make gsupplicant debug depend on CONNMAN_GSUPPLICANT_DEBUG --- plugins/wifi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 2b43deb..b7af712 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -24,6 +24,7 @@ #endif #include +#include #include #include #include @@ -475,7 +476,8 @@ static void network_removed(GSupplicantNetwork *network) static void debug(const char *str) { - connman_debug("%s", str); + if (getenv("CONNMAN_GSUPPLICANT_DEBUG")) + connman_debug("%s", str); } static const GSupplicantCallbacks callbacks = { -- 2.7.4