summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authoraavit <eirik.aavitsland@digia.com>2013-09-25 12:08:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-25 13:31:51 +0200
commit7247cb9e4a8c91fd9b233a47fd2620aed3c7be43 (patch)
tree63be283704797ae45cd0f5ced147dfb157b94bdd /src/testlib
parent283ba0ef014b0af64318c238819e54f1fa9d876f (diff)
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>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qplaintestlogger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp
index 57ce5b031d..77be0e423e 100644
--- a/src/testlib/qplaintestlogger.cpp
+++ b/src/testlib/qplaintestlogger.cpp
@@ -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);
}