Skip to content

Conversation

@jackctj117
Copy link
Contributor

Refactor:
Instead of relying on wolfCrypts debug macros this PR creates wolfHSM debug macros

Replace all printf statements with new print wrappers that internally uses new WOLFHSM_CFG_PRINTF

@jackctj117 jackctj117 self-assigned this Oct 15, 2025
@jackctj117 jackctj117 marked this pull request as draft October 15, 2025 15:49
@jackctj117 jackctj117 requested a review from Copilot October 15, 2025 18:19

This comment was marked as outdated.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 32 out of 32 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jackctj117 jackctj117 marked this pull request as ready for review October 16, 2025 17:58
@jackctj117 jackctj117 requested a review from bigbrett October 16, 2025 17:58
@jackctj117 jackctj117 requested a review from Copilot October 27, 2025 15:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 32 out of 32 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jackctj117 jackctj117 requested a review from Copilot October 27, 2025 17:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 32 out of 32 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bigbrett bigbrett marked this pull request as draft October 28, 2025 21:13
@jackctj117 jackctj117 requested a review from Copilot October 29, 2025 19:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 32 out of 32 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jackctj117 jackctj117 marked this pull request as ready for review November 3, 2025 16:17
@bigbrett bigbrett marked this pull request as draft November 3, 2025 16:48
@jackctj117 jackctj117 requested a review from Copilot November 4, 2025 19:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 44 out of 44 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jackctj117 jackctj117 requested a review from Copilot November 4, 2025 22:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 44 out of 44 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jackctj117 jackctj117 marked this pull request as ready for review November 4, 2025 23:02
Copy link
Contributor

@bigbrett bigbrett left a comment

Choose a reason for hiding this comment

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

@jackctj117 A few things:

  1. the DEBUG variable for each of the makefiles should now turn on WOLFHSM_CFG_DEBUG
  2. Add DEBUG_VERBOSE option to the makefiles turning on WOLFHSM_CFG_DEBUG_VERBOSE
  3. Add a step to each of the built-and-XXX.yml GH actions that builds and runs with DEBUG=1 and DEBUG_VERBOSE=1. Ensure it builds successfully and inspect the output manually to make sure it is behaving properly

@jackctj117 jackctj117 requested a review from bigbrett November 11, 2025 23:50
@bigbrett
Copy link
Contributor

@jackctj117 28 commits is way too many. Please squash.

Copy link
Contributor

@bigbrett bigbrett left a comment

Choose a reason for hiding this comment

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

getting close

- Remove unnecessary DEBUG flag passing from examples/Makefile (Comment 51)
- Fix 80 char line limit in wolfhsm/wh_settings.h (Comment 52)
- Remove DEBUG_CRYPTOCB/DEBUG_WOLFSSL macro dependencies (Comment 53)
- Rename hexdump macros to WH_DEBUG_VERBOSE_HEXDUMP (Comment 54)
- Simplify WH_TEST_PRINT macro definition (Comment 55)

All changes verified with local tests (ASAN=1 TESTWOLFCRYPT=1)

Co-Authored-By: jack@wolfssl.com <jack@wolfssl.com>
@bigbrett bigbrett merged commit bcb4ae3 into main Nov 12, 2025
21 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.

3 participants