diff --git a/uefi/src/mem/util.rs b/uefi/src/mem/util.rs index 1d0d66d41..6df38d916 100644 --- a/uefi/src/mem/util.rs +++ b/uefi/src/mem/util.rs @@ -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 diff --git a/uefi/src/table/boot.rs b/uefi/src/table/boot.rs index 46a79cd7a..ed35ae922 100644 --- a/uefi/src/table/boot.rs +++ b/uefi/src/table/boot.rs @@ -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 {