Skip to content

Conversation

@gojimmypi
Copy link
Contributor

@gojimmypi gojimmypi commented Aug 1, 2025

Description

I've made this mistake myself on more that one occasion: WOLFSSL_DEBUG vs DEBUG_WOLFSSL.

The correct macro for wolfSSL debugging is DEBUG_WOLFSSL.

I've made some corrections that already exist in the codebase and added this to settings.h to avoid future mistakes:

#ifdef WOLFSSL_DEBUG
    #error "Please use DEBUG_WOLFSSL not WOLFSSL_DEBUG"
#endif

As for the pattern:

#ifdef DEBUG_WOLFSSL
        printf("Testing something...\n");
#endif

It is best to use WOLFSSL_MSG from wolfssl/wolfcrypt/logging.h.

WOLFSSL_MSG("Testing something...\n");

Fixes zd#

Testing

Manual testing only

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@dgarske
Copy link
Contributor

dgarske commented Aug 4, 2025

Jenkins retest this please. History lost

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some good changes where WOLFSSL_DEBUG was corrected to DEBUG_WOLFSSL. I don't think we should start error'ing though when encountering WOLFSSL_DEBUG.

@gojimmypi gojimmypi force-pushed the pr-please-use-debug-wolfssl branch from 11b5dca to e0bde96 Compare August 4, 2025 16:05
@gojimmypi gojimmypi force-pushed the pr-please-use-debug-wolfssl branch from e0bde96 to 7c9327a Compare August 5, 2025 19:19
@gojimmypi
Copy link
Contributor Author

Refresh from upstream for #9061 fix, squashed commits & force-pushed to retest.

This forced logic removed per code review, consider spell check instead:

#ifdef WOLFSSL_DEBUG
    #error "Please use DEBUG_WOLFSSL not WOLFSSL_DEBUG"
#endif

@gojimmypi
Copy link
Contributor Author

Jenkins retest this please

For AgentOfflineException: Unable to create live FilePath for wolf-linux-cloud-node-[n]; wolf-linux-cloud-node-[n]was marked offline: Connection was broken

@dgarske dgarske merged commit 5a8b86d into wolfSSL:master Aug 7, 2025
249 of 250 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants