summaryrefslogtreecommitdiffstats
path: root/libfm_jni/FmPerformanceParams.cpp
diff options
context:
space:
mode:
authorAdrianDC <radian.dc@gmail.com>2015-12-30 18:31:39 +0100
committerAdrian DC <radian.dc@gmail.com>2016-01-22 09:40:19 -0800
commit6e7eaa78b6fe52acf98b3e7b8152b79bf0156b72 (patch)
tree0680937198c29eb3c6c097fd8daaa624ef4d5258 /libfm_jni/FmPerformanceParams.cpp
parent8c0da859783217b3c2cc5d13a11d20eaf36564d9 (diff)
downloadandroid_hardware_qcom_fm-6e7eaa78b6fe52acf98b3e7b8152b79bf0156b72.tar.gz
android_hardware_qcom_fm-6e7eaa78b6fe52acf98b3e7b8152b79bf0156b72.tar.bz2
android_hardware_qcom_fm-6e7eaa78b6fe52acf98b3e7b8152b79bf0156b72.zip
libfm_jni: Improve and fix FM jni logs
* Log cur_fm_state as Debug instead of Error * Log successful and state logs as Debug and Info instead of Error * Log step by step firmware download as Info and Debug * Fix logging of the is_rds_support * Add __func__ name for the cur_fm_state logs * Add a cur_fm_state log for Stop_Scan_Seek * Add missing LOG_TAG for all sources using ALOG* * Avoid double log on error in IsRdsSupport * Fix typos, relevant warnings and cleanup related sources Change-Id: I2abe77c6f00c02ef106b569bef5db6b366e76df1
Diffstat (limited to 'libfm_jni/FmPerformanceParams.cpp')
-rw-r--r--libfm_jni/FmPerformanceParams.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libfm_jni/FmPerformanceParams.cpp b/libfm_jni/FmPerformanceParams.cpp
index dc22432..c5cfe68 100644
--- a/libfm_jni/FmPerformanceParams.cpp
+++ b/libfm_jni/FmPerformanceParams.cpp
@@ -27,6 +27,8 @@ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#define LOG_TAG "android_hardware_fm"
+
#include <cstdio>
#include <utils/Log.h>
#include "FmPerformanceParams.h"
@@ -54,7 +56,7 @@ signed char FmPerformanceParams :: SetBand
76000, 90000);
break;
default:
- ALOGE("Band type: %ld is invalid\n", band);
+ ALOGE("Band type: %u is invalid\n", band);
ret = FM_FAILURE;
break;
}