diff mbox

[1/1] package/wpa_supplicant: Enable support for log to debug file

Message ID 1426197654-8183-1-git-send-email-joerg.krause@embedded.rocks
State Changes Requested
Headers show

Commit Message

Jörg Krause March 12, 2015, 10 p.m. UTC
Enables the '-f' option (log output to debug file instead of stdout) for
wpa_supplicant.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
 package/wpa_supplicant/Config.in         | 5 +++++
 package/wpa_supplicant/wpa_supplicant.mk | 4 ++++
 2 files changed, 9 insertions(+)

Comments

Gustavo Zacarias March 13, 2015, 10:08 p.m. UTC | #1
On 03/12/2015 07:00 PM, Jörg Krause wrote:

> Enables the '-f' option (log output to debug file instead of stdout) for
> wpa_supplicant.

Just force enable it, binary size +8 bytes for an ARM target, it doesn't
make sense to make it an option (specially since it must be used and
doesn't affect anything by default).
Regards.
Jörg Krause March 17, 2015, 9:30 p.m. UTC | #2
On Fr, 2015-03-13 at 19:08 -0300, Gustavo Zacarias wrote:
> On 03/12/2015 07:00 PM, Jörg Krause wrote:
> 
> > Enables the '-f' option (log output to debug file instead of stdout) for
> > wpa_supplicant.
> 
> Just force enable it, binary size +8 bytes for an ARM target, it doesn't
> make sense to make it an option (specially since it must be used and
> doesn't affect anything by default).
> Regards.
> 

Sorry, there is an error in the patch:

+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG),y)
+       WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_DEBUG_FILE
+endif

Should be of course:

+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_FILE),y)
+       WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_DEBUG_FILE
+endif

For me it's +963 bytes. Force enable it anyway?
Gustavo Zacarias March 17, 2015, 9:32 p.m. UTC | #3
On 03/17/2015 06:30 PM, Jörg Krause wrote:
> For me it's +963 bytes. Force enable it anyway?

Yes, it's still negligible and the user must use the option in order for
wpa_supplicant to do anything different than what it did before it was
enabled.
Regards.
diff mbox

Patch

diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index f32a867..7c213a2 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -32,6 +32,11 @@  config BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG
 	help
 	  Enable support for sending debug messages to syslog.
 
+config BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_FILE
+	bool "Enable log output to debug file"
+	help
+	  Enable support for log output to debug file instead of stdout.
+
 config BR2_PACKAGE_WPA_SUPPLICANT_WPS
 	bool "Enable WPS"
 	help
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 682cb4c..4f9dff0 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -107,6 +107,10 @@  ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG),y)
 	WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_DEBUG_SYSLOG
 endif
 
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG),y)
+	WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_DEBUG_FILE
+endif
+
 ifeq ($(BR2_PACKAGE_READLINE),y)
 	WPA_SUPPLICANT_DEPENDENCIES += readline
 	WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_READLINE