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); }