From 46a70071a7c0cee6faba60016fbc6e1b3afb043a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 10 Aug 2019 14:51:38 +0200 Subject: [PATCH] Use __android_log_write instead of __android_log_print `print` version of the logging functions supports `printf`-like formatting, which we do not use and given our current debug print internals, will never use. This should be slightly more efficient and expresses the intent better. --- include/internal/catch_debug_console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_debug_console.cpp b/include/internal/catch_debug_console.cpp index 26751c7e..5a99d422 100644 --- a/include/internal/catch_debug_console.cpp +++ b/include/internal/catch_debug_console.cpp @@ -16,7 +16,7 @@ namespace Catch { void writeToDebugConsole( std::string const& text ) { - __android_log_print( ANDROID_LOG_DEBUG, "Catch", text.c_str() ); + __android_log_write( ANDROID_LOG_DEBUG, "Catch", text.c_str() ); } }