@@ -143,7 +143,7 @@ fn send_request_helper(serial: &mut Serial, request: HostRequest) -> Result {
143
143
/// This must be called after opening the serial protocol in exclusive mode, as
144
144
/// that breaks the connection to the console, which in turn prevents logs from
145
145
/// getting to the host.
146
- fn reconnect_serial_to_console ( boot_services : & BootServices , serial_handle : Handle ) {
146
+ fn reconnect_serial_to_console ( serial_handle : Handle ) {
147
147
let mut storage = Vec :: new ( ) ;
148
148
// Create a device path that specifies the terminal type.
149
149
let terminal_guid = if cfg ! ( target_arch = "aarch64" ) {
@@ -160,8 +160,7 @@ fn reconnect_serial_to_console(boot_services: &BootServices, serial_handle: Hand
160
160
. finalize ( )
161
161
. unwrap ( ) ;
162
162
163
- boot_services
164
- . connect_controller ( serial_handle, None , Some ( terminal_device_path) , true )
163
+ uefi:: boot:: connect_controller ( serial_handle, None , Some ( terminal_device_path) , true )
165
164
. expect ( "failed to reconnect serial to console" ) ;
166
165
}
167
166
@@ -198,7 +197,7 @@ fn send_request_to_host(bt: &BootServices, request: HostRequest) {
198
197
// device, which was broken when we opened the protocol in exclusive
199
198
// mode above.
200
199
drop ( serial) ;
201
- reconnect_serial_to_console ( bt , serial_handle) ;
200
+ reconnect_serial_to_console ( serial_handle) ;
202
201
203
202
if let Err ( err) = res {
204
203
panic ! ( "request failed: \" {request:?}\" : {:?}" , err. status( ) ) ;
0 commit comments