diff options
| author | 2010-05-14 15:28:09 -0700 | |
|---|---|---|
| committer | 2010-05-14 15:28:09 -0700 | |
| commit | bfb776acf20652801b88a53f362cb4e0ac517515 (patch) | |
| tree | f48b9d737940bbef0a0419ff8d32ae94e3fa80eb /libs/rs/rsScriptC.cpp | |
| parent | 7450c02a35d7c1f8580f906d6f1c1a11bc5c4fd0 (diff) | |
| parent | ce2cbe4c9605bfc4843968ff6e9746d23643f031 (diff) | |
Merge "Get rid of warnings when compiled with -Wformat-security" into kraken
Diffstat (limited to 'libs/rs/rsScriptC.cpp')
| -rw-r--r-- | libs/rs/rsScriptC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/rs/rsScriptC.cpp b/libs/rs/rsScriptC.cpp index 1f2377309a8f..f4d24516c08a 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); } |