Skip to content
Permalink
Browse files

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.
  • Loading branch information...
horenmar committed Aug 10, 2019
1 parent 378cc1a commit 46a70071a7c0cee6faba60016fbc6e1b3afb043a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() );
}
}

0 comments on commit 46a7007

Please sign in to comment.
You can’t perform that action at this time.