Skip to content

Commit d44c314

Browse files
Merge pull request #1308 from phip1611/misc
misc small improvements
2 parents 86608f3 + 94b4bfe commit d44c314

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

uefi/src/mem/util.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ pub(crate) fn make_boxed<
5454
// Propagate any other error.
5555
Err((status, _)) => Err(Error::from(status)),
5656
// Success is unexpected, return an error.
57-
Ok(_) => Err(Error::from(Status::UNSUPPORTED)),
57+
Ok(_) => {
58+
log::debug!("Got unexpected success status");
59+
Err(Error::from(Status::UNSUPPORTED))
60+
}
5861
}?;
5962

6063
// We add trailing padding because the size of a rust structure must

uefi/src/table/boot.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ impl super::Table for BootServices {
13871387
/// image source.
13881388
#[derive(Debug)]
13891389
pub enum LoadImageSource<'a> {
1390-
/// Load an image from a buffer. The data will copied from the
1390+
/// Load an image from a buffer. The data will be copied from the
13911391
/// buffer, so the input reference doesn't need to remain valid
13921392
/// after the image is loaded.
13931393
FromBuffer {

0 commit comments

Comments
 (0)