Merge "post_proc: fix compiler warnings"
am: f2fdd398aa
Change-Id: I840d08cbda9f4d5ed549b119a3fb13b5edd92087
diff --git a/post_proc/equalizer.c b/post_proc/equalizer.c
index f7d6152..0663237 100644
--- a/post_proc/equalizer.c
+++ b/post_proc/equalizer.c
@@ -371,7 +371,7 @@
equalizer_context_t *eq_ctxt = (equalizer_context_t *)context;
int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
void *value = p->data + voffset;
- int32_t vsize = (int32_t) p->vsize;
+ uint32_t vsize = p->vsize;
int32_t *param_tmp = (int32_t *)p->data;
int32_t param = *param_tmp++;
int32_t preset;
@@ -432,8 +432,8 @@
} else {
if (vsize < (2 + NUM_EQ_BANDS) * sizeof(int16_t)) {
android_errorWriteLog(0x534e4554, "37563371");
- ALOGE("\tERROR EQ_PARAM_PROPERTIES valueSize %d < %d",
- vsize, (2 + NUM_EQ_BANDS) * sizeof(int16_t));
+ ALOGE("\tERROR EQ_PARAM_PROPERTIES valueSize %u < %u",
+ vsize, (unsigned int)((2 + NUM_EQ_BANDS) * sizeof(int16_t)));
p->status = -EINVAL;
break;
}