提交 622aa07c 编写于 作者: M MikeBeaton

OcBootManagementLib: Avoid unecessary warnings on hidden auxiliary entries,...

OcBootManagementLib: Avoid unecessary warnings on hidden auxiliary entries, specifically warn on invalid device path
上级 510fc284
......@@ -690,6 +690,11 @@ InternalAddBootEntryFromCustomEntry (
)
);
if (FilePath == NULL) {
DEBUG ((
DEBUG_WARN,
"OCB: Invalid device path, not adding entry %a\n",
CustomEntry->Name
));
FreeBootEntry (BootEntry);
return EFI_UNSUPPORTED;
}
......@@ -1679,14 +1684,7 @@ AddFileSystemEntryForCustom (
FALSE
);
if (EFI_ERROR (Status)) {
DEBUG ((
DEBUG_WARN,
"OCB: Failed to add custom entry %a - %r\n",
BootContext->PickerContext->CustomEntries[Index].Name,
Status
));
} else {
if (!EFI_ERROR (Status)) {
ReturnStatus = EFI_SUCCESS;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册