Skip to content

Commit 0e7ca18

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 969b4e9 commit 0e7ca18

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
@@ -56,7 +56,10 @@ pub(crate) fn make_boxed<
5656
// Propagate any other error.
5757
Err((status, _)) => Err(Error::from(status)),
5858
// Success is unexpected, return an error.
59-
Ok(_) => Err(Error::from(Status::UNSUPPORTED)),
59+
Ok(_) => {
60+
log::debug!("Got unexpected success status");
61+
Err(Error::from(Status::UNSUPPORTED))
62+
}
6063
}?;
6164

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

0 commit comments

Comments
 (0)