This appears to be a duplicate copy that was hacked, but has since bit rotted. We should kill it and if there's anything here that actually works, we should move it into the one in loader/bootinfo.c.
And then we should merge it with all the other metadata stuff. Too many cut and paste copies of that code!
This looks like it's more for debugging than for an end user. Maybe put this under boot verbose? The reason is that it's not an error until it's an error, meaning that if we're going to wait for the device when it's not there yet, then printing errors is confusing. Putting it under boot verbose is a nice way for people to get insight into why a boot may be stalled...