Skip to content

Conversation

maheeraeron
Copy link
Contributor

@maheeraeron maheeraeron commented Sep 30, 2025

This change simply adjusts it so that UEFI logs that contain ERROR or WARNING get sent to the tracing::error!() or tracing::warn!() channels respectively. This is different from the current behavior, where logs that are EXACTLY ERROR or WARNING would only get sent to the respective trace macros.

It also moves the string conversion logic to the processing function.

@maheeraeron maheeraeron marked this pull request as ready for review October 6, 2025 17:31
@maheeraeron maheeraeron requested a review from a team as a code owner October 6, 2025 17:31
@Copilot Copilot AI review requested due to automatic review settings October 6, 2025 17:31
Copy link
Contributor

@Copilot 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

This PR adjusts UEFI diagnostics log handling to use bitwise operations for trace channel selection, allowing logs containing ERROR or WARNING flags to route to appropriate trace levels instead of requiring exact matches.

  • Changed from exact debug level matching to bitwise flag checking for ERROR and WARNING
  • Moved string conversion logic from handler functions to the processing function
  • Updated function signatures to pass both processed log structs and raw debug levels

smalis-msft
smalis-msft previously approved these changes Oct 6, 2025
@maheeraeron maheeraeron changed the title [WIP] firmware_uefi: EfiDiagnostics adjust trace channel handling firmware_uefi: EfiDiagnostics adjust trace channel handling Oct 6, 2025
Copy link

github-actions bot commented Oct 6, 2025

@maheeraeron maheeraeron merged commit d9307e3 into microsoft:main Oct 6, 2025
28 checks passed
@maheeraeron maheeraeron deleted the user/maheeraeron/efidiagnostics-filter branch October 6, 2025 19:08
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.

2 participants