summaryrefslogtreecommitdiffstats
path: root/media/mca
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-11-30 11:04:10 +0100
committerChih-Hung Hsieh <chh@google.com>2014-12-05 16:14:07 -0800
commit46c82b4cd241a447834ed2f5a6be16777b7a990b (patch)
treeafb199f10ef684e20579058a416c6d8eaa3f83e1 /media/mca
parent8c9283f41083a20a82ae37eac44b79de6eb3158e (diff)
downloadframeworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.zip
frameworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.tar.gz
frameworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.tar.bz2
Adjust format strings to work on both 32-bit and 64-bit builds
Adjust format strings to not produce Clang warnings in both 32-bit and 64-bit builds Change-Id: I76c29d8d5d0fb4b5e9d9518077652370ffe9e871 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'media/mca')
-rw-r--r--media/mca/filterfw/native/core/shader_program.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mca/filterfw/native/core/shader_program.cpp b/media/mca/filterfw/native/core/shader_program.cpp
index f1ea7ed..1e573fb 100644
--- a/media/mca/filterfw/native/core/shader_program.cpp
+++ b/media/mca/filterfw/native/core/shader_program.cpp
@@ -315,7 +315,7 @@ GLuint ShaderProgram::CompileShader(GLenum shader_type, const char* source) {
size_t next_pos = 0;
size_t line_number = 1;
while ( (next_pos = src.find_first_of('\n', cur_pos)) != std::string::npos) {
- ALOGE("%03d : %s", line_number, src.substr(cur_pos, next_pos-cur_pos).c_str());
+ ALOGE("%03zd : %s", line_number, src.substr(cur_pos, next_pos-cur_pos).c_str());
cur_pos = next_pos + 1;
line_number++;
}
@@ -435,7 +435,7 @@ bool ShaderProgram::BindInputTextures(const std::vector<GLuint>& textures,
if (tex_var >= 0) {
glUniform1i(tex_var, i);
} else {
- ALOGE("ShaderProgram: Shader does not seem to support %d number of "
+ ALOGE("ShaderProgram: Shader does not seem to support %zd number of "
"inputs! Missing uniform 'tex_sampler_%d'!", textures.size(), i);
return false;
}