Skip to content

debug changes 1#253

Closed
Flickdm wants to merge 3 commits into
mainfrom
draft/debug/aarc64
Closed

debug changes 1#253
Flickdm wants to merge 3 commits into
mainfrom
draft/debug/aarc64

Conversation

@Flickdm

@Flickdm Flickdm commented May 7, 2026

Copy link
Copy Markdown
Member

Description

<Include a description of the change and why this change was made.>

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Integration Instructions

<Describe how these changes should be integrated. Use N/A if nothing is required.>

@mu-automation mu-automation Bot added the impact:non-functional Does not have a functional impact label May 7, 2026
Flickdm added 3 commits May 8, 2026 16:06
Enable AdvancedLogger-based debug output for the OneCryptoBinDxe
module on AARCH64 by replacing BaseDebugLibNull with
BaseDebugLibAdvancedLogger and configuring debug PCDs.

- Add PcdsPatchableInModule.AARCH64 for PcdDebugPropertyMask
- Add PcdsFixedAtBuild.AARCH64 for debug print error levels
- Add AARCH64-specific OneCryptoPkg debug property/level PCDs
- Switch OneCryptoBinDxe DebugLib to AdvancedLogger with
  required DebugPrintErrorLevelLib, AdvancedLoggerLib, and
  AssertLib library instances

Signed-off-by: Doug Flick <dougflick@microsoft.com>
DebugPrint was passing a VA_LIST directly to OneCryptoDebugPrint
which expects variadic arguments, not a VA_LIST. Format the
message into a local buffer with AsciiVSPrint first, then pass
the resulting string via %a to avoid variadic forwarding issues.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Only free the X509 certificate stack on failure when it was newly
allocated by the function. Previously, a pre-existing stack passed
by the caller would be incorrectly freed on error. Track allocation
origin with a NewlyAllocated flag and add DEBUG logging for
diagnostic visibility.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
@Flickdm Flickdm force-pushed the draft/debug/aarc64 branch from 31ccd36 to e486241 Compare May 9, 2026 00:55
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
OpensslPkg/Library/BaseCryptLib/Pk/CryptX509.c 63.64% 4 Missing ⚠️

❌ Your patch status has failed because the patch coverage (63.64%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project status has failed because the head coverage (47.08%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Flickdm Flickdm closed this May 20, 2026
@Flickdm Flickdm deleted the draft/debug/aarc64 branch May 20, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:non-functional Does not have a functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants