File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Expand file tree Collapse file tree 5 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ impl Debug for EntryAddressHeaderTag {
53
53
. field ( "type" , & self . typ ( ) )
54
54
. field ( "flags" , & self . flags ( ) )
55
55
. field ( "size" , & self . size ( ) )
56
- . field ( "entry_addr" , & ( self . entry_addr as * const u32 ) )
56
+ . field ( "entry_addr" , & self . entry_addr )
57
57
. finish ( )
58
58
}
59
59
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Debug for EntryEfi32HeaderTag {
62
62
. field ( "type" , & self . typ ( ) )
63
63
. field ( "flags" , & self . flags ( ) )
64
64
. field ( "size" , & self . size ( ) )
65
- . field ( "entry_addr" , & ( self . entry_addr as * const u32 ) )
65
+ . field ( "entry_addr" , & self . entry_addr )
66
66
. finish ( )
67
67
}
68
68
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl Debug for EntryEfi64HeaderTag {
62
62
. field ( "type" , & self . typ ( ) )
63
63
. field ( "flags" , & self . flags ( ) )
64
64
. field ( "size" , & self . size ( ) )
65
- . field ( "entry_addr" , & ( self . entry_addr as * const u32 ) )
65
+ . field ( "entry_addr" , & self . entry_addr )
66
66
. finish ( )
67
67
}
68
68
}
Original file line number Diff line number Diff line change @@ -108,10 +108,10 @@ impl Debug for RelocatableHeaderTag {
108
108
. field ( "flags" , & self . flags ( ) )
109
109
. field ( "size" , & self . size ( ) )
110
110
// trick to print this as hexadecimal pointer
111
- . field ( "min_addr" , & ( self . min_addr as * const u32 ) )
112
- . field ( "max_addr" , & ( self . max_addr as * const u32 ) )
113
- . field ( "align" , & { self . align } )
114
- . field ( "preference" , & { self . preference } )
111
+ . field ( "min_addr" , & self . min_addr )
112
+ . field ( "max_addr" , & self . max_addr )
113
+ . field ( "align" , & self . align )
114
+ . field ( "preference" , & self . preference )
115
115
. finish ( )
116
116
}
117
117
}
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ impl<'a> BootInformation<'a> {
132
132
133
133
/// Get the start address of the boot info.
134
134
#[ must_use]
135
+ // TODO deprecated and use pointers only (see provenance discussions)
135
136
pub fn start_address ( & self ) -> usize {
136
137
self . as_ptr ( ) as usize
137
138
}
@@ -153,6 +154,7 @@ impl<'a> BootInformation<'a> {
153
154
/// let end_addr = boot_info.start_address() + boot_info.total_size();
154
155
/// ```
155
156
#[ must_use]
157
+ // TODO deprecated and use pointers only (see provenance discussions)
156
158
pub fn end_address ( & self ) -> usize {
157
159
self . start_address ( ) + self . total_size ( )
158
160
}
You can’t perform that action at this time.
0 commit comments