Skip to content

Commit 9c4e99a

Browse files
committed
mem: simplify debugging with more logging
This is a case that we should log. Otherwise, people may misleadingly think that an UEFI interface reported Status::UNSUPPORTED, although this comes from the high-level wrapper.
1 parent fcfe676 commit 9c4e99a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
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

0 commit comments

Comments
 (0)