Skip to content

Commit

Permalink
fix android log print for new cipher_profile logcat feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlombardo committed Jan 18, 2022
1 parent 70f5b36 commit 7b49eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ static int sqlcipher_profile_callback(unsigned int trace, void *file, void *stmt
double elapsed = (*((sqlite3_uint64*)run_time))/1000000.0;
#ifdef __ANDROID__
if(f == NULL) {
__android_log_print(ANDROID_LOG_DEBUG, "sqlcipher", fmt, elapsed, sqlite3_sql((sqlite3_stmt*)stmt);
__android_log_print(ANDROID_LOG_DEBUG, "sqlcipher", fmt, elapsed, sqlite3_sql((sqlite3_stmt*)stmt));
}
#endif
if(f) fprintf(f, fmt, elapsed, sqlite3_sql((sqlite3_stmt*)stmt));
Expand Down

0 comments on commit 7b49eda

Please sign in to comment.