Please use DEBUG_WOLFSSL not WOLFSSL_DEBUG

This commit is contained in:
gojimmypi
2025-08-05 12:19:30 -07:00
parent 649b6ede69
commit 7c9327a36b
4 changed files with 4 additions and 4 deletions

View File

@@ -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); DPORT_REG_WRITE(RSA_MULT_MODE_REG, (mph->hwWords_sz >> 4) - 1);
#if defined(DEBUG_WOLFSSL) #if defined(DEBUG_WOLFSSL)
ESP_LOGV(TAG, "RSA_MULT_MODE_REG = %d", (mph->hwWords_sz >> 4) - 1); 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. /* step.2 write X, M, and r_inv into memory.
* The capacity of each memory block is 128 words. * The capacity of each memory block is 128 words.

View File

@@ -317,7 +317,7 @@ static int wc_DevCrypto_AesGcm(Aes* aes, byte* out, byte* in, word32 sz,
dir, (byte*)authIn, authInSz, authTag, authTagSz); dir, (byte*)authIn, authInSz, authTag, authTagSz);
ret = ioctl(aes->ctx.cfd, CIOCAUTHCRYPT, &crt); ret = ioctl(aes->ctx.cfd, CIOCAUTHCRYPT, &crt);
if (ret != 0) { if (ret != 0) {
#ifdef WOLFSSL_DEBUG #ifdef DEBUG_WOLFSSL
if (authInSz > sysconf(_SC_PAGESIZE)) { if (authInSz > sysconf(_SC_PAGESIZE)) {
WOLFSSL_MSG("authIn Buffer greater than System Page Size"); WOLFSSL_MSG("authIn Buffer greater than System Page Size");
} }

View File

@@ -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. */ j = *outJ; /* Found index to use in const array. */
if (j == 0) { if (j == 0) {
#ifdef WOLFSSL_DEBUG #ifdef DEBUG_WOLFSSL
printf("Testing const byte ptr reference...\n"); printf("Testing const byte ptr reference...\n");
#endif #endif
/* although j is zero, in[0] does not detect the Illegal instruction */ /* although j is zero, in[0] does not detect the Illegal instruction */

View File

@@ -3124,7 +3124,7 @@ static WC_INLINE int wolfSSL_PrintStats(WOLFSSL_MEM_STATS* stats)
return 0; 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 mallocs = %d\n", stats->totalAlloc);
fprintf(stderr, "Total frees = %d\n", stats->totalFr); fprintf(stderr, "Total frees = %d\n", stats->totalFr);
fprintf(stderr, "Current mallocs = %d\n", stats->curAlloc); fprintf(stderr, "Current mallocs = %d\n", stats->curAlloc);