-
Notifications
You must be signed in to change notification settings - Fork 159
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
How to convert value returned by get_variable_boxed()
into a printable str
?
#925
Comments
UEFI variables can hold arbitrary data, so there's no single optimal way to print them.
So for
I think we should add some code to |
Right. They need to be parsed.
I got this far, yes.
Heh, this I totally misunderstood. Thanks for the direct description. I'll try looking into this tomorrow.
Any suggestion where to put the code? A new module altogether? As part of a new EfiLoadOption type? Perhaps with a new EfiLoadOption::try_from() trait implementation? If possible, I'd like to contribute that code, but I'll probably need some rounds of review before the code is up to the project's standards. Cheers |
That would be great! I'm thinking maybe a new A somewhat similar example that might help to review is the ACPI expanded device path node. The |
Perfect. I'll start working on that. Do you think it makes sense to add a |
I'm not sure about the iterator. It's possible that kind of logic might be too specific to the application using it, so even if we provided it, bootloaders might end up re-implementing their own more specific version. Another option would be to add such code as an example (under uefi-test-runner/examples) and then see if there's anything we feel confident is generic enough to pull out of it. |
Hi,
I'm experimenting with uefi-rs, specifically I want to read the
BootOrder
variable (and the accompanyingBoot####
variables) and try to write a very minimal boot manager application. Reading the content of the variables is straightforward, but how can I convert the resulting&[u8]
into something I can print to the screen?The text was updated successfully, but these errors were encountered: