diff options
author | Nick Kralevich <nnk@google.com> | 2010-05-13 14:46:27 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2010-05-13 14:46:27 -0700 |
commit | ce2cbe4c9605bfc4843968ff6e9746d23643f031 (patch) | |
tree | 9c9fea0a2960c9975b48bf45d3f95dd7fde364b1 /libs | |
parent | 8b518577ceba9746fe5566274bd9deb09d450779 (diff) | |
download | frameworks_base-ce2cbe4c9605bfc4843968ff6e9746d23643f031.zip frameworks_base-ce2cbe4c9605bfc4843968ff6e9746d23643f031.tar.gz frameworks_base-ce2cbe4c9605bfc4843968ff6e9746d23643f031.tar.bz2 |
Get rid of warnings when compiled with -Wformat-security
Change-Id: I63c3bf786bbe7a0276624e71a4ba80c4a9aaa4bb
Diffstat (limited to 'libs')
-rw-r--r-- | libs/rs/rsProgram.cpp | 2 | ||||
-rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/rs/rsProgram.cpp b/libs/rs/rsProgram.cpp index 478a6dc..70e2868 100644 --- a/libs/rs/rsProgram.cpp +++ b/libs/rs/rsProgram.cpp @@ -195,7 +195,7 @@ bool Program::loadShader(Context *rsc, uint32_t type) if (rsc->props.mLogShaders) { LOGV("Loading shader type %x, ID %i", type, mShaderID); - LOGV(mShader.string()); + LOGV("%s", mShader.string()); } if (mShaderID) { diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 1f23773..f4d2451 100644 --- a/libs/rs/rsScriptC.cpp +++ b/libs/rs/rsScriptC.cpp @@ -159,7 +159,7 @@ void ScriptCState::runCompiler(Context *rsc, ScriptC *s) ACCchar buf[4096]; ACCsizei len; accGetScriptInfoLog(s->mAccScript, sizeof(buf), &len, buf); - LOGE(buf); + LOGE("%s", buf); rsc->setError(RS_ERROR_BAD_SCRIPT, "Error compiling user script."); return; } @@ -345,7 +345,7 @@ void ScriptCState::appendTypes(const Context *rsc, String8 *str) s.append(e->getName()); s.append("\n\n"); if (rsc->props.mLogScripts) { - LOGV(s); + LOGV("%s", static_cast<const char*>(s)); } str->append(s); } @@ -372,7 +372,7 @@ void ScriptCState::appendTypes(const Context *rsc, String8 *str) s.append(mSlotNames[ct]); s.append(";\n"); if (rsc->props.mLogScripts) { - LOGV(s); + LOGV("%s", static_cast<const char*>(s)); } str->append(s); } |