bootstd: Allow the bootdev to be optional in bootflows
With global bootmeths we want to scan without a bootdev. Update the logic to allow this. Change the bootflow command to show the bootdev only when valid. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -69,8 +69,8 @@ static void show_bootflow(int index, struct bootflow *bflow, bool errors)
|
||||
{
|
||||
printf("%3x %-11s %-6s %-9.9s %4x %-25.25s %s\n", index,
|
||||
bflow->method->name, bootflow_state_get_name(bflow->state),
|
||||
dev_get_uclass_name(dev_get_parent(bflow->dev)), bflow->part,
|
||||
bflow->name, bflow->fname);
|
||||
bflow->dev ? dev_get_uclass_name(dev_get_parent(bflow->dev)) :
|
||||
"(none)", bflow->part, bflow->name, bflow->fname);
|
||||
if (errors)
|
||||
report_bootflow_err(bflow, bflow->err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user