From 3161c10e00c2c8198809fc514cada0a43c5e66f1 Mon Sep 17 00:00:00 2001 From: mukesh agrawal Date: Mon, 2 May 2016 15:28:33 -0700 Subject: WifiNative.cpp: reduce logspam We sometimes fetch the channel list often (every 20 seconds), so logging the message on every attempt to fetch the list is spammy. Demote the message to verbose level, to reduce spam. BUG=28425940 TEST=manual Manual test: - install new code - reboot device - after reboot, sleep 60 $ adb logcat -d \ | egrep 'getting valid|ScannerImpl: Starting wifi scan for freqs' -> match for "ScannerImpl...", but not "getting valid" Change-Id: I56a8f941ced0f291f0c37e9279e5dda635351cb2 --- service/jni/com_android_server_wifi_WifiNative.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/jni/com_android_server_wifi_WifiNative.cpp b/service/jni/com_android_server_wifi_WifiNative.cpp index 4eb5524f7..765fd9552 100644 --- a/service/jni/com_android_server_wifi_WifiNative.cpp +++ b/service/jni/com_android_server_wifi_WifiNative.cpp @@ -1385,7 +1385,7 @@ static jintArray android_net_wifi_getValidChannels(JNIEnv *env, jclass cls, JNIHelper helper(env); wifi_interface_handle handle = getIfaceHandle(helper, cls, iface); - ALOGD("getting valid channels %p", handle); + ALOGV("getting valid channels %p", handle); static const int MaxChannels = 64; wifi_channel channels[64]; -- cgit v1.2.3