Fix: warning/compilation issue on android

Compiler would complain "error: format not a string literal and no
format arguments [-Werror=format-security]", since the third argument
of __android_log_print() is actually the format string.
__android_log_write() is anyway more suited since we're not using any
format here.

Change-Id: Ic19102a9f15038a7cfcb06b605d7b9a73c3e1175
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
bb10
aavit 2013-09-25 12:08:23 +02:00 committed by The Qt Project
parent 283ba0ef01
commit 7247cb9e4a
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ void QPlainTestLogger::outputMessage(const char *str)
#elif defined(Q_OS_WIN)
OutputDebugStringA(str);
#elif defined(Q_OS_ANDROID)
__android_log_print(ANDROID_LOG_INFO, "QTestLib", str);
__android_log_write(ANDROID_LOG_INFO, "QTestLib", str);
#endif
outputString(str);
}