File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,10 +136,11 @@ impl<B: UsbBus> ControlPipe<'_, B> {
136136 let count = match self . ep_out . read ( & mut self . buf [ i..] ) {
137137 Ok ( count) => count,
138138 Err ( UsbError :: WouldBlock ) => return Ok ( None ) ,
139- Err ( _ ) => {
139+ Err ( _err ) => {
140140 // Failed to read or buffer overflow (overflow is only possible if the host
141141 // sends more data than it indicated in the SETUP request)
142142 self . set_error ( ) ;
143+ usb_debug ! ( "Failed EP0 read: {:?}" , _err) ;
143144 return Ok ( None ) ;
144145 }
145146 } ;
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
218218 Ok ( req) => req,
219219 Err ( _err) => {
220220 // TODO: Propagate error out of `poll()`
221- usb_debug ! ( "Failed to handle EP0: {_err}" ) ;
221+ usb_debug ! ( "Failed to handle EP0: {}" , _err ) ;
222222 None
223223 }
224224 }
@@ -230,7 +230,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
230230 Some ( req) if req. direction == UsbDirection :: In => {
231231 if let Err ( _err) = self . control_in ( classes, req) {
232232 // TODO: Propagate error out of `poll()`
233- usb_debug ! ( "Failed to handle control request: {_err}" ) ;
233+ usb_debug ! ( "Failed to handle control request: {}" , _err ) ;
234234 }
235235 }
236236 Some ( req) if req. direction == UsbDirection :: Out => {
You can’t perform that action at this time.
0 commit comments