Skip to content

Commit f10dbdb

Browse files
committed
improved debug formatting of header/signature
1 parent 9e1a5d6 commit f10dbdb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/table/boot.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,7 @@ impl Debug for BootServices {
689689
"allocate_pages (fn ptr)",
690690
&(self.allocate_pages as *const u64),
691691
)
692-
.field(
693-
"free_pages (fn ptr)",
694-
&(self.free_pages as u64 as *const u64),
695-
)
692+
.field("free_pages (fn ptr)", &(self.free_pages as *const u64))
696693
.field(
697694
"get_memory_map (fn ptr)",
698695
&(self.get_memory_map as *const u64),
@@ -759,7 +756,10 @@ impl Debug for BootServices {
759756
.field("open_protocol", &self.open_protocol)
760757
.field("close_protocol", &self.close_protocol)
761758
.field("open_protocol_information", &self.open_protocol_information)
762-
.field("protocols_per_handle", &(self.protocols_per_handle as *const u64))
759+
.field(
760+
"protocols_per_handle",
761+
&(self.protocols_per_handle as *const u64),
762+
)
763763
.field("locate_handle_buffer", &self.locate_handle_buffer)
764764
.field(
765765
"locate_protocol (fn ptr)",

src/table/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use core::marker::PhantomData;
2-
use core::{slice, ptr};
2+
use core::{ptr, slice};
33

44
use crate::proto::console::text;
55
use crate::{CStr16, Char16, Handle, Result, ResultExt, Status};

0 commit comments

Comments
 (0)