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

Improve VTRUST bits documentation and naming. #3741

Merged
merged 1 commit into from May 17, 2024
Merged

Conversation

andrewkozlik
Copy link
Contributor

During a recent code review I was getting lost in the bitwise complement logic that is used for vtrust flags. This PR should improve legibility by renaming the code constants to what I believe to be more intuitive names and by adding more documentation.

VTRUST_ALL -> VTRUST_NO_WARNING
VTRUST_ALL no longer represents "ultimate trust". It represents the absence of any vendor screen warnings.

VTRUST_RED - > VTRUST_NO_RED etc.
When the corresponding bit is set, it represents that no red screen should be shown, etc.

@andrewkozlik andrewkozlik requested review from hiviah and TychoVrahe and removed request for prusnak and hiviah April 22, 2024 08:51
docs/core/misc/boot.md Outdated Show resolved Hide resolved
@hiviah
Copy link
Contributor

hiviah commented Apr 22, 2024

It's much better with the documentation (the whole C part could use more of it).

@andrewkozlik andrewkozlik merged commit c2c1591 into main May 17, 2024
80 of 81 checks passed
@andrewkozlik andrewkozlik deleted the andrewkozlik/vtrust branch May 17, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

None yet

4 participants