File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ pub struct Smbios {
126
126
127
127
#[ cfg( target_os = "freebsd" ) ]
128
128
pub fn get_smbios ( ) -> Option < SMBiosData > {
129
+ trace ! ( "get_smbios() FreeBSD entry" ) ;
129
130
// Get the SMBIOS entrypoint address from the kernel environment
130
131
let addr_hex = kenv_get ( "hint.smbios.0.mem" ) . ok ( ) ?;
131
132
let addr_hex = addr_hex. trim_start_matches ( "0x" ) ;
@@ -189,6 +190,7 @@ pub fn get_smbios() -> Option<SMBiosData> {
189
190
190
191
#[ cfg( feature = "uefi" ) ]
191
192
pub fn get_smbios ( ) -> Option < SMBiosData > {
193
+ trace ! ( "get_smbios() uefi entry" ) ;
192
194
let data = crate :: uefi:: smbios_data ( ) . unwrap ( ) ;
193
195
let version = None ; // TODO: Maybe add the version here
194
196
let smbios = SMBiosData :: from_vec_and_version ( data, version) ;
@@ -198,6 +200,7 @@ pub fn get_smbios() -> Option<SMBiosData> {
198
200
// On Windows from the kernel API
199
201
#[ cfg( all( not( feature = "uefi" ) , not( target_os = "freebsd" ) ) ) ]
200
202
pub fn get_smbios ( ) -> Option < SMBiosData > {
203
+ trace ! ( "get_smbios() linux entry" ) ;
201
204
match smbioslib:: table_load_from_device ( ) {
202
205
Ok ( data) => Some ( data) ,
203
206
Err ( ref e) if e. kind ( ) == ErrorKind :: PermissionDenied => {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ impl Config {
64
64
}
65
65
66
66
pub fn get ( ) -> MutexGuard < ' static , Option < Self > > {
67
+ trace ! ( "Config::get() entry" ) ;
67
68
let unset = {
68
69
#[ cfg( feature = "std" ) ]
69
70
let config = CONFIG . lock ( ) . unwrap ( ) ;
@@ -88,6 +89,7 @@ impl Config {
88
89
let mut config = CONFIG . lock ( ) ;
89
90
90
91
if new_config. is_some ( ) {
92
+ trace ! ( "Config::get() initializing" ) ;
91
93
* config = new_config;
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments