@@ -167,10 +167,9 @@ fn reconnect_serial_to_console(serial_handle: Handle) {
167167/// Send the `request` string to the host via the `serial` device, then
168168/// wait up to 10 seconds to receive a reply. Returns an error if the
169169/// reply is not `"OK\n"`.
170- fn send_request_to_host ( bt : & BootServices , request : HostRequest ) {
171- let serial_handle = bt
172- . get_handle_for_protocol :: < Serial > ( )
173- . expect ( "Failed to get serial handle" ) ;
170+ fn send_request_to_host ( request : HostRequest ) {
171+ let serial_handle =
172+ uefi:: boot:: get_handle_for_protocol :: < Serial > ( ) . expect ( "Failed to get serial handle" ) ;
174173
175174 // Open the serial protocol in exclusive mode.
176175 //
@@ -183,8 +182,7 @@ fn send_request_to_host(bt: &BootServices, request: HostRequest) {
183182 // end with `connect_controller`.
184183 //
185184 // [console splitter driver]: https://github.com/tianocore/edk2/blob/HEAD/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c
186- let mut serial = bt
187- . open_protocol_exclusive :: < Serial > ( serial_handle)
185+ let mut serial = uefi:: boot:: open_protocol_exclusive :: < Serial > ( serial_handle)
188186 . expect ( "Could not open serial protocol" ) ;
189187
190188 // Send the request, but don't check the result yet so that first
@@ -211,7 +209,7 @@ fn shutdown(mut st: SystemTable<Boot>) -> ! {
211209 // Tell the host that tests are done. We are about to exit boot
212210 // services, so we can't easily communicate with the host any later
213211 // than this.
214- send_request_to_host ( st . boot_services ( ) , HostRequest :: TestsComplete ) ;
212+ send_request_to_host ( HostRequest :: TestsComplete ) ;
215213
216214 // Send a special log to the host so that we can verify that logging works
217215 // up until exiting boot services. See `reconnect_serial_to_console` for the
0 commit comments