commit | 8036b4f91eed066ab2ea51a09dae3ae708e61db0 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Fri Feb 17 10:31:31 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Fri Feb 17 15:56:40 2023 +0000 |
tree | 7c6264ed2dda18f3fd79f809b0fe17c2ff8d0591 | |
parent | 1d41447423ac743a956c62b46da8d01e2c17d2f8 [diff] [blame] |
pvmfw: Use Fdt::as_ptr() during logging Test: m pvmfw_bin Change-Id: I8f845ce77c9ad3bb651fcf6713bf50e36681e095
diff --git a/libs/libfdt/src/lib.rs b/libs/libfdt/src/lib.rs index 29d7abe..927bf50 100644 --- a/libs/libfdt/src/lib.rs +++ b/libs/libfdt/src/lib.rs
@@ -614,7 +614,8 @@ fdt_err_expect_zero(ret) } - fn as_ptr(&self) -> *const c_void { + /// Return a shared pointer to the device tree. + pub fn as_ptr(&self) -> *const c_void { self as *const _ as *const c_void }