From 7247cb9e4a8c91fd9b233a47fd2620aed3c7be43 Mon Sep 17 00:00:00 2001 From: aavit Date: Wed, 25 Sep 2013 12:08:23 +0200 Subject: 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 --- src/testlib/qplaintestlogger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/testlib/qplaintestlogger.cpp') 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); } -- cgit v1.2.3