mirror of https://github.com/wolfSSL/wolfssl.git
Implement peer review suggestions
parent
b29fa9bd33
commit
f408eeb5bb
|
@ -110,7 +110,10 @@
|
||||||
#undef NO_FILESYSTEM
|
#undef NO_FILESYSTEM
|
||||||
#define NO_FILESYSTEM
|
#define NO_FILESYSTEM
|
||||||
|
|
||||||
#elif defined(ANDROID) && !defined(ANDROID_v454)
|
/* ANDROID_V454 (for android studio) displays information in a textview
|
||||||
|
* and redirects printf to the textview output instead of using
|
||||||
|
* __android_log_print() */
|
||||||
|
#elif defined(ANDROID) && !defined(ANDROID_V454)
|
||||||
#ifdef XMALLOC_USER
|
#ifdef XMALLOC_USER
|
||||||
#include <stdlib.h> /* we're using malloc / free direct here */
|
#include <stdlib.h> /* we're using malloc / free direct here */
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -172,15 +172,15 @@ _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
|
||||||
#endif
|
#endif
|
||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
|
||||||
#ifndef ANDROID_v454 /* See fips/android/wolfCrypt_v454_android */
|
#ifdef ANDROID_V454 /* See fips/android/wolfCrypt_v454_android */
|
||||||
#define printf(...) \
|
|
||||||
__android_log_print(ANDROID_LOG_DEBUG, "TAG", __VA_ARGS__)
|
|
||||||
#define fprintf(fp, ...) \
|
|
||||||
__android_log_print(ANDROID_LOG_DEBUG, "TAG", __VA_ARGS__)
|
|
||||||
#else
|
|
||||||
#ifndef NO_FILESYSTEM
|
#ifndef NO_FILESYSTEM
|
||||||
#define NO_FILESYSTEM /* Turn off tests that want to call SaveDerAndPem() */
|
#define NO_FILESYSTEM /* Turn off tests that want to call SaveDerAndPem() */
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
#define printf(...) \
|
||||||
|
__android_log_print(ANDROID_LOG_DEBUG, "TAG", __VA_ARGS__)
|
||||||
|
#define fprintf(fp, ...) \
|
||||||
|
__android_log_print(ANDROID_LOG_DEBUG, "TAG", __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_DEOS)
|
#elif defined(WOLFSSL_DEOS)
|
||||||
#include <printx.h>
|
#include <printx.h>
|
||||||
|
|
Loading…
Reference in New Issue