Skip to content

misc small improvements #1308

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

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion uefi/src/mem/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ pub(crate) fn make_boxed<
// Propagate any other error.
Err((status, _)) => Err(Error::from(status)),
// Success is unexpected, return an error.
Ok(_) => Err(Error::from(Status::UNSUPPORTED)),
Ok(_) => {
log::debug!("Got unexpected success status");
Err(Error::from(Status::UNSUPPORTED))
}
}?;

// We add trailing padding because the size of a rust structure must
Expand Down
2 changes: 1 addition & 1 deletion uefi/src/table/boot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ impl super::Table for BootServices {
/// image source.
#[derive(Debug)]
pub enum LoadImageSource<'a> {
/// Load an image from a buffer. The data will copied from the
/// Load an image from a buffer. The data will be copied from the
/// buffer, so the input reference doesn't need to remain valid
/// after the image is loaded.
FromBuffer {
Expand Down