Merge "Fix format strings mismatching the parameters passed to them"
This commit is contained in:
@@ -98,16 +98,16 @@ static bool setMixerValue(struct mixer* mixer, const char* name, const char* val
|
|||||||
ALOGE("mixer_ctl_set_value failed for %s %d", name, intValue);
|
ALOGE("mixer_ctl_set_value failed for %s %d", name, intValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ALOGE("Could not parse %s as int for %d", intValue, name);
|
ALOGE("Could not parse %s as int for %s", values, name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MIXER_CTL_TYPE_ENUM:
|
case MIXER_CTL_TYPE_ENUM:
|
||||||
if (sscanf(values, "%s", stringValue) == 1) {
|
if (sscanf(values, "%s", stringValue) == 1) {
|
||||||
if (mixer_ctl_set_enum_by_string(ctl, stringValue) != 0) {
|
if (mixer_ctl_set_enum_by_string(ctl, stringValue) != 0) {
|
||||||
ALOGE("mixer_ctl_set_enum_by_string failed for %s %%s", name, stringValue);
|
ALOGE("mixer_ctl_set_enum_by_string failed for %s %s", name, stringValue);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ALOGE("Could not parse %s as enum for %d", stringValue, name);
|
ALOGE("Could not parse %s as enum for %s", values, name);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <utils/misc.h>
|
#include <utils/misc.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <SkBitmap.h>
|
#include <SkBitmap.h>
|
||||||
|
|
||||||
@@ -372,7 +373,7 @@ nContextGetErrorMessage(JNIEnv *_env, jobject _this, jlong con)
|
|||||||
&receiveLen, sizeof(receiveLen),
|
&receiveLen, sizeof(receiveLen),
|
||||||
&subID, sizeof(subID));
|
&subID, sizeof(subID));
|
||||||
if (!id && receiveLen) {
|
if (!id && receiveLen) {
|
||||||
ALOGV("message receive buffer too small. %i", receiveLen);
|
ALOGV("message receive buffer too small. %zu", receiveLen);
|
||||||
}
|
}
|
||||||
return _env->NewStringUTF(buf);
|
return _env->NewStringUTF(buf);
|
||||||
}
|
}
|
||||||
@@ -392,7 +393,7 @@ nContextGetUserMessage(JNIEnv *_env, jobject _this, jlong con, jintArray data)
|
|||||||
&receiveLen, sizeof(receiveLen),
|
&receiveLen, sizeof(receiveLen),
|
||||||
&subID, sizeof(subID));
|
&subID, sizeof(subID));
|
||||||
if (!id && receiveLen) {
|
if (!id && receiveLen) {
|
||||||
ALOGV("message receive buffer too small. %i", receiveLen);
|
ALOGV("message receive buffer too small. %zu", receiveLen);
|
||||||
}
|
}
|
||||||
_env->ReleaseIntArrayElements(data, ptr, 0);
|
_env->ReleaseIntArrayElements(data, ptr, 0);
|
||||||
return (jint)id;
|
return (jint)id;
|
||||||
@@ -456,7 +457,7 @@ nElementCreate(JNIEnv *_env, jobject _this, jlong con, jlong type, jint kind, jb
|
|||||||
jint size)
|
jint size)
|
||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nElementCreate, con(%p), type(%i), kind(%i), norm(%i), size(%i)", (RsContext)con,
|
ALOGD("nElementCreate, con(%p), type(%" PRId64 "), kind(%i), norm(%i), size(%i)", (RsContext)con,
|
||||||
type, kind, norm, size);
|
type, kind, norm, size);
|
||||||
}
|
}
|
||||||
return (jlong)(uintptr_t)rsElementCreate((RsContext)con, (RsDataType)type, (RsDataKind)kind,
|
return (jlong)(uintptr_t)rsElementCreate((RsContext)con, (RsDataType)type, (RsDataKind)kind,
|
||||||
@@ -561,7 +562,7 @@ nTypeCreate(JNIEnv *_env, jobject _this, jlong con, jlong eid,
|
|||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nTypeCreate, con(%p) eid(%p), x(%i), y(%i), z(%i), mips(%i), faces(%i), yuv(%i)",
|
ALOGD("nTypeCreate, con(%p) eid(%p), x(%i), y(%i), z(%i), mips(%i), faces(%i), yuv(%i)",
|
||||||
(RsContext)con, eid, dimx, dimy, dimz, mips, faces, yuv);
|
(RsContext)con, (void*)eid, dimx, dimy, dimz, mips, faces, yuv);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips,
|
return (jlong)(uintptr_t)rsTypeCreate((RsContext)con, (RsElement)eid, dimx, dimy, dimz, mips,
|
||||||
@@ -651,7 +652,7 @@ static void
|
|||||||
nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
|
nAllocationIoSend(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
|
||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nAllocationIoSend, con(%p), alloc(%p)", (RsContext)con, alloc);
|
ALOGD("nAllocationIoSend, con(%p), alloc(%p)", (RsContext)con, (RsAllocation)alloc);
|
||||||
}
|
}
|
||||||
rsAllocationIoSend((RsContext)con, (RsAllocation)alloc);
|
rsAllocationIoSend((RsContext)con, (RsAllocation)alloc);
|
||||||
}
|
}
|
||||||
@@ -660,7 +661,7 @@ static void
|
|||||||
nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
|
nAllocationIoReceive(JNIEnv *_env, jobject _this, jlong con, jlong alloc)
|
||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nAllocationIoReceive, con(%p), alloc(%p)", (RsContext)con, alloc);
|
ALOGD("nAllocationIoReceive, con(%p), alloc(%p)", (RsContext)con, (RsAllocation)alloc);
|
||||||
}
|
}
|
||||||
rsAllocationIoReceive((RsContext)con, (RsAllocation)alloc);
|
rsAllocationIoReceive((RsContext)con, (RsAllocation)alloc);
|
||||||
}
|
}
|
||||||
@@ -1089,7 +1090,7 @@ static void
|
|||||||
nScriptSetVarObj(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
|
nScriptSetVarObj(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
|
||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nScriptSetVarObj, con(%p), s(%p), slot(%i), val(%i)", (RsContext)con, (void *)script,
|
ALOGD("nScriptSetVarObj, con(%p), s(%p), slot(%i), val(%" PRId64 ")", (RsContext)con, (void *)script,
|
||||||
slot, val);
|
slot, val);
|
||||||
}
|
}
|
||||||
rsScriptSetVarObj((RsContext)con, (RsScript)script, slot, (RsObjectBase)val);
|
rsScriptSetVarObj((RsContext)con, (RsScript)script, slot, (RsObjectBase)val);
|
||||||
@@ -1099,7 +1100,7 @@ static void
|
|||||||
nScriptSetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
|
nScriptSetVarJ(JNIEnv *_env, jobject _this, jlong con, jlong script, jint slot, jlong val)
|
||||||
{
|
{
|
||||||
if (kLogApi) {
|
if (kLogApi) {
|
||||||
ALOGD("nScriptSetVarJ, con(%p), s(%p), slot(%i), val(%lli)", (RsContext)con, (void *)script,
|
ALOGD("nScriptSetVarJ, con(%p), s(%p), slot(%i), val(%" PRId64 ")", (RsContext)con, (void *)script,
|
||||||
slot, val);
|
slot, val);
|
||||||
}
|
}
|
||||||
rsScriptSetVarJ((RsContext)con, (RsScript)script, slot, val);
|
rsScriptSetVarJ((RsContext)con, (RsScript)script, slot, val);
|
||||||
|
|||||||
Reference in New Issue
Block a user