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> {
136
136
let count = match self . ep_out . read ( & mut self . buf [ i..] ) {
137
137
Ok ( count) => count,
138
138
Err ( UsbError :: WouldBlock ) => return Ok ( None ) ,
139
- Err ( _ ) => {
139
+ Err ( _err ) => {
140
140
// Failed to read or buffer overflow (overflow is only possible if the host
141
141
// sends more data than it indicated in the SETUP request)
142
142
self . set_error ( ) ;
143
+ usb_debug ! ( "Failed EP0 read: {:?}" , _err) ;
143
144
return Ok ( None ) ;
144
145
}
145
146
} ;
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
218
218
Ok ( req) => req,
219
219
Err ( _err) => {
220
220
// TODO: Propagate error out of `poll()`
221
- usb_debug ! ( "Failed to handle EP0: {_err}" ) ;
221
+ usb_debug ! ( "Failed to handle EP0: {}" , _err ) ;
222
222
None
223
223
}
224
224
}
@@ -230,7 +230,7 @@ impl<B: UsbBus> UsbDevice<'_, B> {
230
230
Some ( req) if req. direction == UsbDirection :: In => {
231
231
if let Err ( _err) = self . control_in ( classes, req) {
232
232
// TODO: Propagate error out of `poll()`
233
- usb_debug ! ( "Failed to handle control request: {_err}" ) ;
233
+ usb_debug ! ( "Failed to handle control request: {}" , _err ) ;
234
234
}
235
235
}
236
236
Some ( req) if req. direction == UsbDirection :: Out => {
You can’t perform that action at this time.
0 commit comments