mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-10 16:14:42 +02:00
Merge pull request #9054 from gojimmypi/pr-please-use-debug-wolfssl
Please use DEBUG_WOLFSSL not WOLFSSL_DEBUG
This commit is contained in:
@@ -2154,7 +2154,7 @@ int esp_mp_mulmod(MATH_INT_T* X, MATH_INT_T* Y, MATH_INT_T* M, MATH_INT_T* Z)
|
||||
DPORT_REG_WRITE(RSA_MULT_MODE_REG, (mph->hwWords_sz >> 4) - 1);
|
||||
#if defined(DEBUG_WOLFSSL)
|
||||
ESP_LOGV(TAG, "RSA_MULT_MODE_REG = %d", (mph->hwWords_sz >> 4) - 1);
|
||||
#endif /* WOLFSSL_DEBUG */
|
||||
#endif /* DEBUG_WOLFSSL */
|
||||
|
||||
/* step.2 write X, M, and r_inv into memory.
|
||||
* The capacity of each memory block is 128 words.
|
||||
|
@@ -317,7 +317,7 @@ static int wc_DevCrypto_AesGcm(Aes* aes, byte* out, byte* in, word32 sz,
|
||||
dir, (byte*)authIn, authInSz, authTag, authTagSz);
|
||||
ret = ioctl(aes->ctx.cfd, CIOCAUTHCRYPT, &crt);
|
||||
if (ret != 0) {
|
||||
#ifdef WOLFSSL_DEBUG
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
if (authInSz > sysconf(_SC_PAGESIZE)) {
|
||||
WOLFSSL_MSG("authIn Buffer greater than System Page Size");
|
||||
}
|
||||
|
@@ -18663,7 +18663,7 @@ static wc_test_ret_t const_byte_ptr_test(const byte* in, word32 *outJ)
|
||||
j = *outJ; /* Found index to use in const array. */
|
||||
|
||||
if (j == 0) {
|
||||
#ifdef WOLFSSL_DEBUG
|
||||
#ifdef DEBUG_WOLFSSL
|
||||
printf("Testing const byte ptr reference...\n");
|
||||
#endif
|
||||
/* although j is zero, in[0] does not detect the Illegal instruction */
|
||||
|
@@ -3124,7 +3124,7 @@ static WC_INLINE int wolfSSL_PrintStats(WOLFSSL_MEM_STATS* stats)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* print to stderr so is on the same pipe as WOLFSSL_DEBUG */
|
||||
/* print to stderr so is on the same pipe as DEBUG_WOLFSSL */
|
||||
fprintf(stderr, "Total mallocs = %d\n", stats->totalAlloc);
|
||||
fprintf(stderr, "Total frees = %d\n", stats->totalFr);
|
||||
fprintf(stderr, "Current mallocs = %d\n", stats->curAlloc);
|
||||
|
Reference in New Issue
Block a user