From f05b1fc87fe8cda23312cef3b6d9843b84d27ade Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 25 Oct 2006 04:11:05 +0000 Subject: [PATCH] 2006-10-25 Dan Williams * src/NetworkManagerUtils.c - (nm_utils_supplicant_request_with_check): suppress messages for the "SCAN" command git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2085 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ src/NetworkManagerUtils.c | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 096539d589..679ff4b3a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-25 Dan Williams + + * src/NetworkManagerUtils.c + - (nm_utils_supplicant_request_with_check): suppress messages for the + "SCAN" command + 2006-10-24 Dan Williams Reduce the number of times the Gnome applet wakes up, especially when diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index 12317853af..efaf14340f 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -796,12 +796,19 @@ nm_utils_supplicant_request_with_check (struct wpa_ctrl *ctrl, response = g_malloc (RESPONSE_SIZE); len = RESPONSE_SIZE; #ifdef SUPPLICANT_DEBUG - nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command); + /* Hack: don't print anything out for SCAN commands since they + * happen so often. + */ + if (strcmp (command, "SCAN") != 0) + nm_info ("SUP: sending command '%s'", err_msg_cmd ? err_msg_cmd : command); #endif wpa_ctrl_request (ctrl, command, strlen (command), response, &len, NULL); response[len] = '\0'; #ifdef SUPPLICANT_DEBUG - { + /* Hack: don't print anything out for SCAN commands since they + * happen so often. + */ + if (strcmp (command, "SCAN") != 0) { response = kill_newline (response, &len); nm_info ("SUP: response was '%s'", response); }