Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pe: Enhance debug report for update_mem_attrs #594

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

jongwu
Copy link
Contributor

@jongwu jongwu commented Jul 31, 2023

When memory attributes cannot be updated due to misalignment with 4K or when the size is 0, the debug printout lacks sufficient clarity to indicate the issue. To enhance troubleshooting, it is crucial to generate an error log that explicitly states the failure to execute the expected action. This error log will be visible even when the debug level log is not enabled, thereby significantly reducing debugging time.

@jongwu
Copy link
Contributor Author

jongwu commented Oct 23, 2023

Hello @vathpela -, any comments?

@vathpela
Copy link
Contributor

There are three aspects of this I don't like:

  • The new message says it failed, but that's not necessarily true, which is why it's already separate from actually displaying an error
  • I'd rather leave the concise print intact and add another to say specifically which value may be problematic
  • holy crap that is one long line of text being printed.

@vathpela vathpela added this to the shim 16 milestone Nov 12, 2024
When memory attributes cannot be updated due to misalignment with 4K or
when the size is 0, the debug printout lacks sufficient clarity to
indicate the issue. To enhance troubleshooting, it is crucial to
generate an error log that explicitly states the failure to execute the
expected action. This error log will be visible even when the debug
level log is not enabled, thereby significantly reducing debugging time.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
@vathpela vathpela force-pushed the enhance_debug_report branch from 1f03e43 to 4df1899 Compare February 4, 2025 16:49
@vathpela vathpela merged commit c66c157 into rhboot:main Feb 4, 2025
20 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.

2 participants