Printing device followed by interface matches, e.g., edk2.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
So why do we even use this function at all?
I mean, the change is right, but it's wrong that we use this function still anywhere at all. We should be calling back to UEFI to format this...
The firmware isn't guaranteed to provide the formatting protocol, so this is the fallback... working on a project right now where we actually exercise this path, and it caused me a couple of gray hairs.
It looks like this is used only as a fallback...
And IIRC, this has been required since 2.0 and would only be wrong on things like old core/core2 macbooks.
Where is this failing?
And maybe we should look at what we do for libefi...
As of the 2.9 spec, table 2-11 in 2.6.1 does not list either the from/to text protocols as required elements. No objection to centralized handling if we do it elsewhere, too.
So it does...
I've held off on this in the past because I also entertained the idea of switching the EDK2 APIs so we can also pull in ACPI parsing...
For us, the value is diagnostics - I did add those bits because there was some case about distinguishing those block devices...